View Full Version : MEL Help!

11 November 2004, 11: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.


11 November 2004, 12:52 PM
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 January 2006, 11: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.