Here's the code:
Code:
string $spheres[] = `ls -sl`; string $currentSphere; for ($currentSphere in $spheres) { } print "The primary visibility has been turned off for all of the selected geometry.";
string $spheres[] = `ls -sl`; string $currentSphere; for ($currentSphere in $spheres) { } print "The primary visibility has been turned off for all of the selected geometry.";
Oh! Okay so that's how you access that attribute. Needless to say, I'm teaching myself MEL and am still getting the hang of it so...I appreciate ur help. I'll test it when I get home. Thanks again.Originally posted by bendingiscool
This should work for you...
string $sel[] = `ls -sl`;
for($i=0;$i<size($sel);$i++){
setAttr ($sel[$i] + ".primaryVisibility") 0;
}
Just select all your objects and run the code.
Chris