PDA

View Full Version : toggling image planes?


rblitz7
11-17-2005, 12:24 AM
Is it possible to make a MEL script that toggles on and off the image planes? (I know nothing about making MEL scripts)

stallion151
11-17-2005, 12:58 AM
if you go to highend3d.com and search in maya mel scripts for "toggleImage" a script will appear with this exact thing...

in the script it turns all on and off. but if you have an alpha in your image plane it won't show...you have to edit the script to say displayMode 3 instead of 2...

cheerio.

rblitz7
11-17-2005, 08:02 PM
Cool! Thanks man!:)

rblitz7
11-17-2005, 11:53 PM
Uh sorry if this is dumb but how do I use it? its in my scripts folder and I know how to edit shelf buttons but...im lost.

stallion151
11-18-2005, 01:53 AM
just run this line in your shelf or in your script editor/ script line.

toggleImagePlanes

it will turn it on if they're off and off if they're on.

to find out exactly what your scripts need, open them up and see the global proc name
and whatever is in the name area will usually be what you need to run for the script to execute.

CGTalk Moderation
11-18-2005, 01:53 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.