filter selection for quick edit
I often have to make the same corrections like change backface culling to a bunch of objects. instead of doing it all manually it would be great to use a simple line of mel like
$sel = `filterExpand -sm Mask)` ; setAttr $sel+Shape.backfaceCulling 0; the filterExpand command doesn´t return me a shapeType or the objects name tho..? how would I go in MEL to apply an operation to my current selection? |
`ls -s`returns me all the shape nodes of all objects tho just one is selected. this should not happen? `ls -sl` returns my selected object which I need for connecting it to .backfaceCulling.
I still can´t find the answer. how do I connect an attribute to the selected object? |
string $cmd = "(setAttr $itemList + ".backfaceCulling 0")";
string $itemList[] = `ls -sl`; select -d; string $results[] = executeForEachObject($itemList, $cmd); still the first line does not compute. please somebody help. |
you could do this:
Code:
string $shapes[] = `ls -sl`; tell me if it works |
All times are GMT. The time now is 01:43 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018