disable maya window refresh

1,284 views
Skip to first unread message

wbate

unread,
Oct 8, 2008, 4:22:43 PM10/8/08
to python_inside_maya
I have been searching high and low, does anyone know a command/method
for disabling the refreshing of the main window/interface? I have
scripts that run much faster if Maya isn't updating the display
continuously. Selecting another application that covers Maya's main
window makes the script execution instantaneous. Any thoughts/ideas?

Stab

unread,
Oct 9, 2008, 8:43:33 AM10/9/08
to python_in...@googlegroups.com
The only way I find to deal with this is to iconised the maya window
something like:

global string $gMainWindow;
window -e -vis 0 $gMainWindow;

I don't know the equivalent in python yet ...
I think you can even show a big window that cover the whole maya
window to force the window to not refresh...

--
---------------------------------------------
Julien Caillaud - Stab

site: stabalarash.com
msn: dark...@hotmail.com
...

wbate

unread,
Oct 9, 2008, 9:58:36 AM10/9/08
to python_inside_maya
Thanks for your suggestions!

I tried to make the main window invisible but it did not seem to work
(Maya auto-generated a replacement). I am currently creating a window
that covers the screen, executing my main procedure, then deleting the
window. It just seems there should be a more elegant solution...

On Oct 9, 7:43 am, Stab <jcaill...@gmail.com> wrote:
> The only way I find to deal with this is to iconised the maya window
> something like:
>
> global string $gMainWindow;
> window  -e -vis 0 $gMainWindow;
>
> I don't know the equivalent in python yet ...
> I think you can even show a big window that cover the whole maya
> window to force the window to not refresh...
>
> On Wed, Oct 8, 2008 at 10:22 PM, wbate <scupf...@gmail.com> wrote:
>
> > I have been searching high and low, does anyone know a command/method
> > for disabling the refreshing of the main window/interface?  I have
> > scripts that run much faster if Maya isn't updating the display
> > continuously.  Selecting another application that covers Maya's main
> > window makes the script execution instantaneous.  Any thoughts/ideas?
>
> --
> ---------------------------------------------
> Julien Caillaud - Stab
>
> site:  stabalarash.com
> msn:  darks...@hotmail.com
> ...

nick puckett

unread,
Oct 9, 2008, 11:56:33 AM10/9/08
to python_in...@googlegroups.com
If it is a problem, why don't you just run the script in batch mode (ie no GUI) ? its really easy and extremely fast.

pierre brindel

unread,
Oct 9, 2008, 4:33:34 PM10/9/08
to python_in...@googlegroups.com
Hello, it's not python... But when I needed to do some like that. I putted
the Ouliner in a full view.
it's working if the problem is refreshing 3d...

--------------------------------------------------
From: "wbate" <scup...@gmail.com>
Sent: Thursday, October 09, 2008 3:58 PM
To: "python_inside_maya" <python_in...@googlegroups.com>
Subject: [Maya-Python Club:1190] Re: disable maya window refresh

Matt Estela

unread,
Oct 10, 2008, 4:12:12 AM10/10/08
to python_in...@googlegroups.com
same here, better yet open a single viewport that definitely won't be
updated as the scene changes, like the render view or the visor.
Conversely there's panels you absolutely never want visible when
running complex scripts, as they update like crazy and slow things
down. 2 worst offenders I've found are the graph editor and
relationship editor.
Reply all
Reply to author
Forward
0 new messages