Since you're posting in the MEL Forum I won't go into any details about the Attribute Spreadsheet.....
global proc setMyAtt( int $myAtt ) // Assuming attribute is an int
{
string $select[] = ls -sl
;
for ( $item in $select )
{
if ( attributeQuery -exists "my\_att"
)
setAttr ( $item + ".my_att" ) $myAtt;
}
}
Now to set the attribute(s) to a value of 42, select one or more of your objects and:
setMyAtt( 42 );
--
Bryan Ewert