Announcement

Collapse
No announcement yet.

Script to create user attribute on all scene geo?

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

  • Script to create user attribute on all scene geo?

    I've created a vray user attribute that I'm using to exclude certain attributes for the render. The value in the user attribute is "ExcludeAO=1;" (without the quotes). This is working fine when I make it manually, but I'd like to apply this user attribute to every geo in my scene using a script since there are hundreds of objects and doing it manually would be tedious.

    Could someone be so kind as to tell me how to do that?

    The script should:
    1) Create a vray user attribute for all objects in the scene (on the geo's Shape node)
    2) Assign the value "ExcludeAO=1;" (without the quotes).

    The difficulty I'm having is that I cannot see what the commands are for this in the MEL of the script editor, since they don't show up there.

    thanks!

  • #2
    You can assign the user attributes anywhere in a hierarchy of objects, so if you have a root node, you can just assign the attribute to it.

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

    Comment


    • #3
      Even better, since that means it will work with vray fur too! Awesome, thanks

      Comment

      Working...
      X