I’m creating a maxscript with a rollout and some rendering params. I would like to know if there is an event for when my script windows lost focus (become not active window anymore) and especially when it become active back to update some settings that can be change in render setup dialog.
Sort of :
rollout mySettings “mySettings”
(
–UI stuff !
on active event do mystuff()
on inactive event do mystuff2()
)
createdialog mySettings
I found some article on lostfocus and gotfocus but seems more for UI element than UI itself, if not only for dotnet UI elements
[QUOTE=KiboOst;25662]works nice, thanks.I didn’t knew clock tick either ;-)[/QUOTE]
Well - it’s only the timer called “clock” and the usual maxscript timer eventhandler is “on tick” - so this makes a nice handler signature of “on clock tick do”
But that’s quite the common thing, like “on myTimer tick do”