Announcement

Collapse
No announcement yet.

Add a Vray attribute to several object/shader.

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

  • Add a Vray attribute to several object/shader.

    Hi,

    Would it be possible to add a Vray attribute to several selected object or shaders.
    here is where I have a problem:
    I need to add a Multi Matte attribute to several shaders. It would be nice if I could select a couple of shaders, then in the AE, go attribute/Vray/Material ID, and the attribute gets added to every selected shaders. Then I can go and modify it per shaders.

    Thanks,

    Yannick
    Portfolio: http://www.cgifocus.co.uk

  • #2
    You might know already, but this can be accomplished with a couple of lines of mel or python (not including any nodeType checking or error handling):

    // mel:
    for ($mat in `ls -sl`)
    vrayAddAttr $mat vrayColorId;
    Last edited by Dan Andersen; 08-09-2011, 11:40 AM.

    Comment

    Working...
    X