View Full Version : Scriptexecution every 1 second
Posativ 12-26-2007, 01:26 PM Hi,
I'm new to MaxScript. How can I said my Script that it should execute themselve every second?
I don't know under which word I should search in the MaxScript Help.
Thanks in advance
|
|
Hi,
I'm new to MaxScript. How can I said my Script that it should execute themselve every second?
I don't know under which word I should search in the MaxScript Help.
Thanks in advance
Two ways:
*Look for Timer User Interface Control in the Help. It is a special type of UI element that does not display anything in the rollout, but can "tick" as often as you want.
*If you have Max 9 or higher, you can also use a DotNet Timer Control:
http://www.scriptspot.com/bobo/mxs9/dotNet/Timer.html
This one does not require a rollout. I tend to use it for polling (non-event driven) actions.
Posativ
12-27-2007, 10:42 AM
Thank you.
I have Max 9 and your example spams my Listener full - but it works!
Thank you.
I have Max 9 and your example spams my Listener full - but it works!
That's why I provided the line
theTimer.stop() --use this method to stop the Timer.
to stor the spamming :)
CGTalk Moderation
12-27-2007, 11:04 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.