Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / MEL / Mel setAttr for image planes?
  RSS 2.0 ATOM  

Mel setAttr for image planes?
Rate this thread
 
51912
 
Permlink of this thread  
avatar
  • Total Posts: 4
  • Joined: 06 November 2006 02:15 PM

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



Replies: 0
avatar
  • raym4n
  • Posted: 01 February 2011 09:45 PM

$state 0;
$imagePlanes =  `ls -type imagePlane`;
for(
$plane in $imagePlanes){
    setAttr 
($plane+".displayMode"$state;
}

to turn them on again just change state to 3



Replies: 0
avatar

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");
}
}



Replies: 0