Maya close editor.

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  02 February 2013
Maya close editor.

My problem,

i search command for close chanel control, graph editor, hypergraph, spread sheet, uv editor + trax editor, if one can help me...
 
  02 February 2013
I'm not sure if this applicable but there's the deleteUI command
__________________
blah blah blah
 
  02 February 2013
Hehe no is problem, if not why i post?
 
  02 February 2013
did you try turning on echo all commands in the script editor to see if any useful info is printed there when you close one of the editors?
__________________
blah blah blah
 
  02 February 2013
check the hotkey editor , for example in maya 2013 they created a section for node editor
where they list a lot of commands you can call manually o assign to hokey
__________________
My website/blog , with a lot of tips&tricks about maya API,python,and pyqt , and tutorials
www.marcogiordanotd.com
llinkedin
 
  02 February 2013
Thanks at all im go to try.
 
  02 February 2013
Thumbs up

Thank you, gmask.

All use deleteUI just hypergraph = hyperGraphWindowClosed hyperGraphPanel2.
 
  02 February 2013
Originally Posted by Tamjieuv: Thank you, gmask.

All use deleteUI just hypergraph = hyperGraphWindowClosed hyperGraphPanel2.


Ah.. cool.. I meant to follow up on this.. thanks for reporting your results
__________________
blah blah blah
 
  02 February 2013
I tried this, which worked...
It deletes all UIs but the main window.

string $allWindows [] = `lsUI -wnd`;
for ($window in $allWindows)
{
	if ("MayaWindow" == $window || "CommandWindow" == $window)
		continue;
	else
		deleteUI $window;
}
 
  02 February 2013
Crashing after execution, not good for one & for all.
 
  02 February 2013
this is how I close the UV Editor (python)

import maya.cmds as cmds
uveditor = cmds.getPanel(scriptType='polyTexturePlacementPane  l')[0]
if (cmds.scriptedPanel(uveditor, query=True, control=True)):
	control = cmds.control(uveditor, query=True, fullPathName=True)
	cmds.deleteUI(control.split('|')[0], window=True)


Note: you will have to remove the inserted spaces if you try to copy and paste this code into maya's script editor.
 
  02 February 2013
Originally Posted by Tamjieuv: Crashing after execution, not good for one & for all.

Crashing? No error message at all? I tried once again with a lot of windows and there was no problem...
(oh, btw, I work with Maya 2009... I didn't try with a newer version, I'll do it as soon as I can)

Last edited by depakeen : 02 February 2013 at 08:56 AM.
 
  02 February 2013
ok, crashed on 2011. It seems that he doesn't like to close the scriptEditor when the script actually runs...
Does it work better? Seems good to me.
string $allWindows [] = `lsUI -wnd`;

for ($window in $allWindows)
{
	if ("MayaWindow" != $window && "CommandWindow" != $window)
	{
		string $cmd = ("deleteUI " + $window + ";");
		evalDeferred $cmd; 
	}
}
 
  02 February 2013
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 09:19 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.