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];

    }

 

Comments
Search
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."