Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Callbacks from externalized values

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
hummerbaendiger
Posts: 21
Joined: 22 Mar 2012, 15:54

Callbacks from externalized values

Post by hummerbaendiger » 23 May 2013, 13:57

Hi everyone,

Is there a way to get a callback from a changed output value that has been externalized to Ventuz .Net Remoting? So if I move an axis, I could dynamically update an external running software that is connected via Remoting 2? I would get a notification whenever and which of the values has been modified and adjust my interface accordingly instead of polling the externalized values again and again.
The only way I see by now would be to attach an event to the output value that fires whenever the value itself changes. Or is there already an integrated mechanism?

Cheers, Florian

User avatar
Daniel Willer
Posts: 309
Joined: 06 Jan 2012, 18:12

Re: Callbacks from externalized values

Post by Daniel Willer » 24 May 2013, 09:36

Hi Florian

Yes you can get a callback from a scene via Remoting check the Ventuz.Remoting.chm helpfile for futher informations.
You can receive all events of the RemoteScene in one package via the Ventuz.Remoting2.Helpers.SceneCallbackHandler if you want to listen to certain events you should regeister your handlers at the Callback event of the IExternalEvent interface.

Cherio!

hummerbaendiger
Posts: 21
Joined: 22 Mar 2012, 15:54

Re: Callbacks from externalized values

Post by hummerbaendiger » 24 May 2013, 11:06

Thanks Daniel,

I already have the callback implementation for events :) . Now I was only wondering if I could get a notification whenever an externalized output value changes.
Or to put it into an example: I have an expression that processes the x and y coordinates of a touch input (in what way ever) and delivers a float value as output. This is the value I want to expose. The question now is if there is any way to get a callback in my remoting application that this exposed value changed? Except attaching another event to the value?

User avatar
Daniel Willer
Posts: 309
Joined: 06 Jan 2012, 18:12

Re: Callbacks from externalized values

Post by Daniel Willer » 24 May 2013, 17:21

Ok I got it. There is no global way to get a notification if one of the external values has changes but you can just use a float value node bind the result of your expression and externalize the Changed event of the float value node. ;)

Cherio!

Post Reply