Announcement

Collapse
No announcement yet.

Assign V-Ray as current render via Maxscript

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

  • Assign V-Ray as current render via Maxscript

    Is it possible to assign V-Ray as the current renderer without having to use the specific point release information in the name?

    I'm 99% someone told me how to do this not so long ago but I cannot for the life of me remember how.

    Thanks in advance!

    AJ
    MDI Digital
    moonjam

  • #2
    You can check for VRay in the name of available renderers and use that as there can be only one VRay at a time hihi.

    Code:
    [B]
    [COLOR=#B1B100]for[/COLOR] r in [COLOR=#CC66CC]1[/COLOR] to [COLOR=#66CC66]([/COLOR]rendererClass.classes[COLOR=#66CC66])[/COLOR].count where matchPattern [COLOR=#66CC66]([/COLOR][COLOR=#66CC66]([/COLOR]rendererClass.classes[COLOR=#66CC66])[/COLOR][COLOR=#66CC66][[/COLOR]r[COLOR=#66CC66]][/COLOR] as string[COLOR=#66CC66])[/COLOR] pattern:[COLOR=#FF0000]"V_Ray_Adv*"[/COLOR] [COLOR=#B1B100]do[/COLOR] Renderers.Production = RendererClass.Classes[COLOR=#66CC66][[/COLOR]r[COLOR=#66CC66]][/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])
    [/COLOR][/B]
    Regards,Thorsten

    Comment


    • #3
      That's absolutely perfect, thank you Thorsten!
      MDI Digital
      moonjam

      Comment

      Working...
      X