View Full Version : Mental Ray Rendering Flags

04 April 2003, 07:50 AM
I have more than 300 objects in my scene and it is really tedious to select each object's transform node to uncheck "Derive from maya" and then set "Trace" to "No" ("Trace" and some other attributes are dim unless you uncheck "Derive from Maya" checkbox)

The main problem is that you must uncheck "Derive from maya" then you can edit the "undimmed" (affected by unchecking "Derive from maya checkbox) attributes in the Attribute SpreadSheet.

I finally got a script that it will uncheck each objects' "Derive from maya checkbox. Then I can go to Attribute Spreadsheet to edit the "undimmed" attributes.

int $i;
string $selectedGroup[] = `ls -sl`;

for ($i = 0; $i < (size($selectedGroup));$i++)
setAttr ($selectedGroup[$i]+".miDeriveFromMaya") 0;

But I want to set the "undimmed" attributes directly, which mean I don't want to go into Attribute Spreadsheet and set attributes by hand. I want to set these (undimmed) attributes directly by MEL.

The following commands are not working.
SetAttr($selectedGroup[$si]+".miVisible" 1;
SetAttr($selectedGroup[$si]+".miCaustic" 1;

Any help will be appreciated..


CGTalk Moderation
01 January 2006, 09:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.