Announcement

Collapse
No announcement yet.

Change default render settings

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

  • Change default render settings

    Hi,
    I would like to get V-Ray to always use _ as a render element separator.
    I already edited vrayCreateRenderElementsTab.mel so that _ is the new default. But when I import the default render settings, the separator is resets to .
    Is there any way to edit the default render settings?

    Florian
    Florian von Behr
    CG Supervisor
    The Scope GmbH
    Behance

  • #2
    Modifying the V-Ray MEL scripts is not recommended. There isn't a way to change the default settings. You can use this post-translate script to change the separator to an underline:
    Code:
    from vray.utils import *
    output = findByType('SettingsOutput')[0]
    output.set('relements_divider', "_")
    or
    Code:
    setAttr "vraySettings.fileNameRenderElementSeparator" -type "string" "_";
    Alternatively, create a preset and manually edit the preset file and change this line as so:
    Code:
    "vraySettings.fileNameRenderElementSeparator": "_",
    Note that the change will not be visible in the UI, but will be reflected internally.
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      I found a way to set this automatically. Here is how.

      Create a scriptJob in your userSetup.mel that calls a function whenever a scene is fully loaded.
      Code:
      scriptJob -event "PostSceneRead" setRenderElementSeparator;
      Put this code inside a file called setRenderElementSeparator.mel and save it in your maya scripts folder.
      Code:
      global proc setRenderElementSeparator()
      {
          setAttr "vraySettings.fileNameRenderElementSeparator" -type "string" "_";
      }
      
      setRenderElementSeparator();
      Florian von Behr
      CG Supervisor
      The Scope GmbH
      Behance

      Comment

      Working...
      X