Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

sleep in MaxScript

sleep in MaxScript

Anonymous
Not applicable
931 Views
2 Replies
Message 1 of 3

sleep in MaxScript

Anonymous
Not applicable
Is there some FN like EventsProcessed for waiting all things done, but not pause

seems "break" and "sleep" just pause events process , but not wait all script done
0 Likes
932 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I suppose you could use a timer to check if things are done. Make your check
is simple so you aren't introducing "lag" into your processing run.
The timer runs independent of order of execution...just make sure
you trap it so it doesn't fire prematurely.
0 Likes
Message 3 of 3

Anonymous
Not applicable
Hi, I can't find an answer for so long..

I've got script that runs as usual and then uses few DotNet BackgroundWorker threads for some hard job...after finishing these jobs(I can track this through the global variable) script has to continue the work, as after common command execution.
But it goes further right after threads start...and their result comes too late 😞
Any ideas?
0 Likes