Announcement

Collapse
No announcement yet.

set Render Element Separator via mel

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

  • set Render Element Separator via mel

    Hi,

    I try to set the render element separator via a small mel script (in my case to "_"). Can you tell me the attribute or function I have to use?

    I just got "vrayChangeRenderElementSeparator;" via "echo all commands"-function and don't know, how to use it.

    Thanks!
    Best regards,
    Janosch

  • #2
    Hi,
    You can use this code to change render element separator from your MEL script:

    string $separator = "_";
    if (`objExists vraySettings`) {
    setAttr "vraySettings.fileNameRenderElementSeparator" -type "string" $separator;
    };


    Only the first character from $separator string will be taken into account, also it must be valid filename character.
    V-Ray for Maya developer

    Comment


    • #3
      nice, thank you.

      one thing left: now in the render settings the old separator is displayed. i only can check the "real" active separator via getAttr

      how to avoid this?
      Last edited by CAPTURE_MM; 10-10-2012, 04:43 AM.

      Comment

      Working...
      X