Tuesday, September 18, 2018

xray selected

Just passing thru an old script


// xraySelected.mel
// isolated by steve Mann
global proc xraySelectedObj()

{
// get selected shape nodes
string $sel[] = `ls -sl -dag -s`;
for( $each in $sel )
{
if (`getAttr ($each + ".intermediateObject")` == 0)
{
int $xState[] = `displaySurface -q -xRay $each`;
displaySurface -xRay ( !$xState[0] ) $each;
}
}
}

No comments:

Post a Comment