//This only works fir the first selected attribute
string $object[] = ls -sl
;
string $attribute[] = channelBox -q -sma mainChannelBox
;
for ($item in $object)
{
setAttr ($item + "." + $attribute[0]) 0;
}
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//This works with every selected attribute
string $object[] = ls -sl
;
string $attribute[] = channelBox -q -sma mainChannelBox
;
for ($item in $object)
for($attr in $attribute)
setAttr ($item + "." + $attr) 0;