Announcement

Collapse
No announcement yet.

Zdepth min/max via maxscript

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

  • Zdepth min/max via maxscript

    In Max 2012 x64 with Vray 2.30.01

    I would like to set the vray zdepth min/max values via maxscript.
    For example, if I manually change the zdepth min value to 10, the Maxscript listener records:
    zdepth_min:10

    This recorded command doesn’t work in a script though.
    What is missing?

    Thanks
    Graham
    Graham Macfarlane
    3D Studio Max, Vray and motion graphics specialist
    Elyarch Ltd - London UK

  • #2
    You mean for the z-depth render element?

    Best regards,
    Vlado
    I only act like I know everything, Rogers.

    Comment


    • #3
      Yes, the Vray z-depth render element.
      Graham Macfarlane
      3D Studio Max, Vray and motion graphics specialist
      Elyarch Ltd - London UK

      Comment


      • #4
        It would be something like this:
        Code:
        re = maxOps.GetCurRenderElementMgr()
        zdepth=re.getRenderElement 0 -- replace 0 with the actual 0-based index of the VRayZDepth render element
        zdepth.zdepth_min=100
        zdepth.zdepth_max=200
        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment


        • #5
          Thanks Vlado!
          Graham Macfarlane
          3D Studio Max, Vray and motion graphics specialist
          Elyarch Ltd - London UK

          Comment

          Working...
          X