Announcement

Collapse
No announcement yet.

Max Script to load render preset in Vray Volume Grid

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

  • Max Script to load render preset in Vray Volume Grid

    Hi,

    the subjects says it all, is there any function that would allow us loading a .tpr preset after creating a Vray Volume Grid object ?

    This has to work on Max 2016.

    Thanks !
    Chris

  • #2
    Hey,

    There is such a function for Phoenix but the Volume Grid does not have such maxscript interface currently. Doesn't look like a lot of work to add it. You need it for V-Ray 3 if I may guess?

    Cheers!
    Svetlin Nikolov, Ex Phoenix team lead

    Comment


    • #3
      Hi, thanks for the quick reply !

      I need it for Vray 3 indeed. I can see from the .tpr how I can parse through the file to get the values to apply but since there is multiple type and kind of values as well as the values for each frame, it's a bit of work that I wanted to avoid as I would have to test it out a few times to make sure my stuff is actually working correctly, especially the ramps.

      Cheers
      Chris

      Comment


      • #4
        Sorry, something I forgot to mention, I actually don't really need Max Script, but I believe there is no Python functions yet for VRay so I'm using it this way :

        result = MaxPlus.FPValue()
        evaluation_success = MaxPlus.Core.EvalMAXScript("VRayVolumeGrid()", result)
        vray_node = result.Get()

        rendinput = vray_node.GetObject().ParameterBlock.GetParamByNam e('rendinput')
        rendinput.SetValue("C:\myvdb.#.vdb")

        Comment


        • #5
          Hey, just wanted to update you that we're working on it an hopefully in a few days the changes will be available in the V-Ray 3 stable nightlies.

          Cheers!
          Svetlin Nikolov, Ex Phoenix team lead

          Comment


          • #6
            Hi ! This is great to hear ! Thanks !

            Comment


            • #7
              Hey, this change has been in Phoenix and V-Ray Next for some days now, and will be in V-Ray 3's stable nightlies tomorrow.

              The available functions are:

              setCoordSys
              loadRenderPreset
              getVelocity
              getRGB
              getTemperature
              getSmoke
              getFuel

              Example usage:
              $VRayVolumeGrid001.getFuel (Point3 15 15 15)

              Hope this helps, please ping us if you have any issues
              Cheers!
              Svetlin Nikolov, Ex Phoenix team lead

              Comment

              Working...
              X