Notifications
Clear all

[Closed] spinner event handler outside of rollout

Hi Guys,

Now I have got a situation where I need to telnet some data, spinners value etc.
So I have my rollouts and the rollout is set to global so its ui elements can be accessed outside. My rollout is rendercamerasettings.
now If I do this:

on rendercamerasettings.skylightgain changed val do (
startlivemodetelnet()
)

I will get error. I am wondering that is it possible to do this in a different way?
THe when paramaters change dont apply here since it needs an object.
Also it would be best if I could delete the event/change handler but the rest of the handlers which are inside the rolloout stays itact like with deleteAllChangeHandlers() which doesnt delete those.

Thanks.

2 Replies

quick and dirty hackaround would be to create a dummyNode, monitor any positional changes, inside the RO you change the position by script when the spinner val changes and outside you simply get the ro.spinner.val when the position changes that way youd have 3 quick seperate eventhandlers with the TM only, when you close the RO you delete the spinner and alls gud
just gotta make sure you dont go out of range with the TM values

hej thanks, well, I decided to put into the rollout chagne handler . So this way even if in those cases when the there is no telnet connection the change handler will be called, but there is a variable which tells that the connection is alive or not, so calling the function will only takes place if the telnet is alive. Well, it would be a great development if it would work outside or independently as well.