|
Primitives Scene and The Toggle Script In this video Andrew Silke shows the polygon 3d scene files and demo a Maya script that comes in really handy.
The .mel script is as follows... string $selection[] = `ls -sl`; string $object[] = `ls -sl`; for ( $i = 0; $i < (`size $selection`); $i++ ) { int $visibilityValue = `getAttr ($object[$i] + ".visibility")`; if ($visibilityValue) { setAttr ($object[$i] +".visibility") 0; } else { setAttr ($object[$i] +".visibility") 1; } setKeyframe -breakdown 0 -hierarchy none -at "v" $object[$i];
}
|