Run script on screenRedraw

Hi,

Need a bit of help -
Currently my script is updating (looping) on timer, but I'm trying to run the script on screen Redraw.
Managed to set-up Callback system, but not sure how it should call the script.
Is anybody could show a sample of layout that works on callback system?

Thanks

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Nevil's picture

registerRedrawViewsCallback

Hi there
you can register an viewport callback whit registerRedrawViewsCallback

for exampel:

fn redrawviews_p = print "Viewports Redrawn"
registerRedrawViewsCallback redrawviews_p

And unregister that whit unRegisterRedrawViewsCallback

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.