Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 27-02-2005 , 10:29 PM
Protheus's Avatar
Registered User
Join Date: Sep 2002
Location: Beyond Oblivion
Posts: 471

How to close a panel

I have created a panel layout containing (Front/Side/Top/Persp) - is used on one monitor

This is the standard - so each time maya starts up this layout is displayed.

I have a dual monitor so what I want is to have (Front/Side/Top) on one monitor and the persp view on the other monitor. I have created a panel layout for the (front/Side/Top) layout and got the MEL script of the Tearoff Persp:

[Script]
//tearoff of persp
modelPanel -q -e -to modelPanel4;

//the standard layout
setNamedPanelLayout "Top/Front/Side";

this is all oke and it working fine.

Now I want to MEL script a button to close the teared off pers view.

I have found the name of the panel - maya is telling me that it is called: modelPanel4

But when I use: deleteUI modelPanel4;

the persview is all grey.

So my question is how do you close (MEL script) atearedoff pers view ?


The Important Thing is NOT to Stop Questioning.
--- Albert Einstein ---
www.ProtheusWorld.tk
# 2 27-02-2005 , 10:37 PM
Protheus's Avatar
Registered User
Join Date: Sep 2002
Location: Beyond Oblivion
Posts: 471
stupid stupid stupid !!!...

Figured it out

command is: deleteUI -panel "name of panel";

:-)


The Important Thing is NOT to Stop Questioning.
--- Albert Einstein ---
www.ProtheusWorld.tk
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads