PDA

View Full Version : MEL Help!


Anchuvi
11-18-2004, 10:58 AM
Hi all,

Does anyone know how to automatically close down all the open panels in a scene? I am trying to write a script to do this each time you open/save a scene.

I know you can set the preferences to not save the UI but then you lose the main model panels configuration.

Thanks!

goleafsgo
11-18-2004, 11:52 AM
This may work for you:


global string $gMainWindow;
string $windows[] = `lsUI -windows`;
for ($window in $windows) {
if ($window != $gMainWindow) {
window -edit -visible false $window;
}
}

CGTalk Moderation
01-19-2006, 10:00 PM
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.