Announcement

Collapse
No announcement yet.

maxscript help: massivly change the output RGB_level of bitmap

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • maxscript help: massivly change the output RGB_level of bitmap

    Hi,
    I'm trying to do a script to help me massivly changing the output RGB_level of bitmap assigned as diffuse map.
    It must works also for nested maps.
    If I use
    Code:
    getclassinstances standardtextureoutput
    it returns me the Output nodes used in the scene.
    And it's perfect because I don't know where an "output node" is used in the shaders.
    But now I would like to tell 3dsmax to set the property "RGB_level" of each node at a value, indipendently from their "position" at the parameters hierarchy.

    I hope my help request is clear and someone could give me a suggestion to do it.

    Thanks in advance

  • #2
    what about:

    (getclassinstances standardtextureoutput).RGB_level
    Marc Lorenz
    ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
    www.marclorenz.com
    www.facebook.com/marclorenzvisualization

    Comment


    • #3
      I tried and report this error

      (getclassinstances standardtextureoutput).RGB_level
      -- Unknown property: "rgb_level" in #(MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output, MtlBase:Output)

      Comment


      • #4
        I see...this should work:

        for i in (getclassInstances standardtextureoutput) do i.rgb_level=1
        Marc Lorenz
        ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
        www.marclorenz.com
        www.facebook.com/marclorenzvisualization

        Comment


        • #5
          great!!!

          It works!!

          Thank you very much.

          Comment

          Working...
          X