Notifications
Clear all
[Closed] Why is my timer not working?
Dec 27, 2020 1:39 pm
Hey, guys, I want the 3dmax file to execute my timer when it is loaded. What should I do? Below is my code, but it does not work>.<
test = attributes example
(
on load do (
theTimer = dotNetObject "System.Windows.Forms.Timer"
fn printTime = (print localTime)
dotnet.addEventHandler theTimer "tick" printTime
theTimer.interval = 1000
theTimer.start()
)
)
custAttributes.add rootNode test
3 Replies