/ Published in: Maxscript
The mycb function is called every milisceond, regardless of any other UI
Expand |
Embed | Plain Text
fn mycb = ( ts = timeStamp() -- get current time thestring = ( (ts / 1000.0) as string + " sec") -- draw the time in the viewport gw.wText [50,50,0] thestring gw.enlargeUpdateRect #whole gw.updateScreen() ) -- create dotNet elements tmr = dotNetObject "System.Windows.Forms.Timer" tmr.interval = 1 dotnet.addEventHandler tmr "tick" mycb tmr.start() -- stop the timer -- tmr.stop()
You need to login to post a comment.
