hi there...
this script overrides toggle bounding box for individual objects ....
my questino is this : if my selection is more than 1. than this errors occurs :
Cannot convert data of type int[] to type int. //
global proc toggleviewAsBBox()
{
string $sel[] = ls -sl
;
string $current;
if( size($sel) != 0 )
{
for( $current in $sel )
{
string $ovr = $current + ".overrideEnabled";
string $lod = $current + ".overrideLevelOfDetail";
int $tgA=`getAttr $current ".overrideEnabled"`;
//print $tgA[];
int $tgA=!($tgA);
setAttr $ovr $tgA;
setAttr $lod $tgA;
//print( "n" + "toggle view as box for: " + $current );
}
}
else
{
error( "Nothing Selected" );
}
}