|
Hello,
I want to list any of the image planes in a scene and turn them ‘off’...any help?
Thank you.
this is what I have so far…
select `ls -type imagePlane`;
|
|
|
|
$state = 0; $imagePlanes = `ls -type imagePlane`;
for($plane in $imagePlanes){
setAttr ($plane+".displayMode") $state; }
to turn them on again just change state to 3
|
|
|
|
Thank you...I had someone else replied to this with this script.
string $cameras[] = `ls -typ “camera"`;
for ( $i=0; $i<size($cameras); $i++){
string $camIP[] = `listConnections -d 1 ($cameras[$i] +
“.imagePlane")`;
if (`size($camIP)`>0){
setAttr ($camIP[0] + “.displayMode") 0;
print ("Disabled display of “ +
$camIP[0] + “.\n");
}
}
|
|
|