Announcement

Collapse
No announcement yet.

VRay Next GPU Override value not-settable via MaxScript (v1.1)

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

  • VRay Next GPU Override value not-settable via MaxScript (v1.1)

    Hi All!

    Setting the override material (and whether it's on or not) via the UI works perfectly. However, setting it via maxscript does change the renderer's properties as displayed by Maxscript but doesn't change the UI, nor does it change whether it actually renders with the override on or not. This is all being done with the RSD closed.

    For example, on a brand new scene with the renderer set to VRay Next GPU

    Code:
    vrgpu = renderers.production
    vrgpu.overrideMtl_on
    vrgpu.overrideMtl_mtl
    print "--------"
    vrgpu.overrideMtl_on = true
    vrgpu.overrideMtl_mtl = VrayMtl()
    vrgpu.overrideMtl_on
    vrgpu.overrideMtl_mtl
    This will print:
    Code:
    false
    undefined
    "--------"
    true
    VrayMtl:VrayMtl
    This is what you'd expect. But if you open the RSD, no options have changed, and sure enough rendering will not actually have an override set.

    This was also the case on version 4.02.05.

    Is it just me? It's possible there are other properties like that, those are just the first two I've bumped into.

    Thanks,
    Dan

  • #2
    Hello,

    You actually have to use the override properties of the V-Ray Next render object that is inside the V-Ray Next GPU like this:
    Code:
    vrgpu=renderers.production
    vrayrend=vrgpu.V_Ray_settings
    vrayrend.options_overrideMtl_on=true
    vrayrend.options_overrideMtl_mtl=VRayMtl()
    and so on..
    The override properties in the vrgpu object were used in previous versions for ActiveShade but are no longer used.

    Best regards,
    Yavor
    Yavor Rubenov
    V-Ray for 3ds Max developer

    Comment


    • #3
      Originally posted by yavor.rubenov View Post
      Hello,

      You actually have to use the override properties of the V-Ray Next render object that is inside the V-Ray Next GPU like this:
      Code:
      vrgpu=renderers.production
      vrayrend=vrgpu.V_Ray_settings
      vrayrend.options_overrideMtl_on=true
      vrayrend.options_overrideMtl_mtl=VRayMtl()
      and so on..
      The override properties in the vrgpu object were used in previous versions for ActiveShade but are no longer used.

      Best regards,
      Yavor
      Got it - thank you for the quick response, that's perfect!

      Regards,
      Dan

      Comment

      Working...
      X