PDA

View Full Version : disable dialog updates during script run


JHN
08-09-2007, 08:55 AM
Hi,

Is there anyway to keep the dialogs from updating when my script runs?
I'm already using :

"with redraw off"
&
"suspend/resume editing"

but the dialog that holds the UI for my script flickers during running of the script.

The script needs to set the timeslider 1 frame at a time, and that's why things flicker, so is there anyway to hide the dialogs during the running of the script, or some better solution is welcome as well!!


Thanx in advance,
-Johan

Gravey
08-09-2007, 10:03 AM
you could try using a rolloutFloater and the following code:
myRolloutFloat.placement = #minimized
--execute some code
myRolloutFloat.placement = #normal

JHN
08-09-2007, 12:14 PM
That didn't work for my case, but(!) i just wrapped the function between

progressStart "dostuff"
dostuff()
progressEnd()

This hides all unnessecry windows during the progress and speeds up the process considerably, because it doesn't have to update nothing...

I'm a happy sorry camper!
Thanx!

-Johan

JHN
08-09-2007, 12:29 PM
Ok... dang... you can't nest progressStart's
So when done processing my dialogs stay hidden....

Anyone any suggestions?

-Johan

CGTalk Moderation
08-09-2007, 12:29 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.