Announcement

Collapse
No announcement yet.

Controlling Vray Object Properties in Maxscript

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

  • Controlling Vray Object Properties in Maxscript

    I was building a render pass manager for our workflow here at our studio and the only missing component is being able to manipulate the Vray object properties. Mostly toggling the matte object, alpha contribution value, the shadows and affect alpha checkboxes.

    The documentation on the Vray/Maxscript is really limited to just basic render settings but I really would like to get into the Vray object properties to make this Pass Manger work.

    Help me out and I plan on making it available to all.

    Thanks,
    CGsoldier
    Paolo Hilario
    GLASSANVILSTUDIOS
    http://www.glassanvistudios.com

  • #2
    Here ya go http://www.chaoticdimension.com/foru...perties+script
    Eric Boer
    Dev

    Comment


    • #3
      I guess with this method I will be forced to save out external data on the different states of my user defined properties (Vray Properties) and load them later depending on the pass.

      Am I missing something or is there a way to set the Vray Object Properties directly? I tried using the "setUserProp" to no avail. It returns that no such variable exists though I can load, save, and view the properties so I know they are there.

      Am I missing a switch in there somewhere that tells it that is's a user property?

      $.VRay_Matte_Shadows = true

      -- Unknown property: "VRay_Matte_Shadows" in $Sphere:Sphere02 @ [-21.747379,-62.894539,0.000000]


      If I can't get to them directly and change the objects properties using an array that I guess I'll just have to use the saved state method. But that's a big pain in the A$$%&*^
      Paolo Hilario
      GLASSANVILSTUDIOS
      http://www.glassanvistudios.com

      Comment


      • #4
        whoa, what in tarnation is up with that avatar? It needs to be ALOT smaller please.
        ____________________________________

        "Sometimes life leaves a hundred dollar bill on your dresser, and you don't realize until later that it's because it fu**ed you."

        Comment


        • #5
          not really such a pain in the A$$%&*^...
          Eric Boer
          Dev

          Comment


          • #6
            80 x 80 Please CGsoldier ...or there abouts
            Natty
            http://www.rendertime.co.uk

            Comment


            • #7
              Originally posted by natty
              80 x 80 Please CGsoldier ...or there abouts
              Says the guy with a 134x134 avatar....

              Comment


              • #8
                Originally posted by Dynedain
                Originally posted by natty
                80 x 80 Please CGsoldier ...or there abouts
                Says the guy with a 134x134 avatar....
                wow did you actually download his image just to check how big it is?
                ____________________________________

                "Sometimes life leaves a hundred dollar bill on your dresser, and you don't realize until later that it's because it fu**ed you."

                Comment


                • #9
                  or just right clicked properties....
                  Eric Boer
                  Dev

                  Comment


                  • #10
                    LOL... Ok... it's changed...

                    Now can I get an answer to the question???

                    So no direct access through scripted commands to the Vray Object properties huh? Only by saving out object states in external files.

                    Is there a way to kick them out to varibles that remain in the MAX file at least so that we won't have issues with external files in case one of my co-workers want to open the files up.

                    Thanks!
                    Paolo Hilario
                    GLASSANVILSTUDIOS
                    http://www.glassanvistudios.com

                    Comment


                    • #11
                      There is direct access through scripted commands to the Vray Object properties, just need to write to the user buffer
                      Eric Boer
                      Dev

                      Comment


                      • #12
                        Ahhhh... ok! I get it. Once they are written out I can edit the data though string functions and manipulate the variables once I have loaded the user buffer.

                        Cool!!! Thanks Eric, You Rock.
                        Paolo Hilario
                        GLASSANVILSTUDIOS
                        http://www.glassanvistudios.com

                        Comment


                        • #13
                          Glad ya got it Paolo
                          Eric Boer
                          Dev

                          Comment

                          Working...
                          X