[Closed] Scriptexecution every 1 second
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.
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