Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   How to close a panel (https://simplymaya.com/forum/showthread.php?t=15605)

Protheus 27-02-2005 10:29 PM

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 ?

Protheus 27-02-2005 10:37 PM

stupid stupid stupid !!!...

Figured it out

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

:-)


All times are GMT. The time now is 05:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018