Maya 2018 - How edit attributes of several objects at same time?


#1

Whenever i select several objects at same time, then i click attributes to change all of their limits, drawing overrides, arnold properties…etc, Maya only allows me to change one of the selected objects…

what if i must change 300 objects attributes and i cant make that change by selecting all them and making my changes at same time…it will be a long day to modify each attribute manually.

How to do this?


#2

you’ll have to modify this script to change the “myAttribute” and value from “0”, but try running a mel script like this:

string $sSel[] = ls -sl;
int $Value;
string $sObj;

$Value = 0;

for($sObj in $sSel)
{
editRenderLayerAdjustment “$sObj.myAttribute”;
setAttr ($sObj + “.myAttribute”) $Value;
};


#3

Actually you can edit multiple object atributes at the same time from the channel box (it doesnt apply to all atributes, like the text on the Type tool)


#4

In addition to the methods mentioned, you can use the Attribute Spread Sheet. Windows > General Editors > Attribute Spread Sheet. There you can select all the boxes for a given attribute on multiple objects all at once and enter a value.

It’s good to learn scripting too though.


#5

Oh yeah, you can now do render layer overrides in the attribute spreadsheet via its layer menu - didn’t know that. Without the right-click menu working, I didn’t think it let you


#6

even better, from Arvid Schneider

http://lightshader.de/documentation/attributecontrol/


#7

This link is broken. Do you know if I can find this script somewhere else ?

Thanks