Page 1 of 1

Assigning values to items (faders, buttons...) via script

PostPosted: Fri Dec 13, 2013 4:42 pm
by claude.rivet
Good day,

I am trying to find how I could assign values to faders via a script or nodes. The idea would be to dynamically change the device a fader is assigned to.

So fader1 is assigned to 2.1 (site 2 device 1) but at the press of a CustomScriptButton Fader1 becomes assigned to the values stored in 2 textboxes or the the values stored in 2 corresponding variables. I already am using those variables in my scripts and it is working fine but my only problem is assigning them to a fader so the fader talks to the appropriate site.device when triggered by the scripts (WDFadeToValue for example).

make sense? Possible?

That would be great and very helpful.

Thanks for your time and for considering my question.
Regards

Re: Assigning values to items (faders, buttons...) via scrip

PostPosted: Sat Dec 14, 2013 2:07 am
by asherrobinson
I think you're asking how to re-assign the binding of a fader GUI element with a customscript button?

instead of setting the site.device in the fader properties, use nodes to route Fader Input > Device Control.

then, use WDNodeSetParam script function with your variables derived from textboxes to set the destination (site.device) of the Device Control Node.

hope thats helpful.
-A

Re: Assigning values to items (faders, buttons...) via scrip

PostPosted: Sat Dec 14, 2013 1:41 pm
by Dennis Kuypers
Hi,

I think the previous post gives a pretty good solution.

Open a node's Properties Window to see the available ParamIDs you can set. (the small numbers at the top right corner of each field)

DeviceNodeProperties.PNG



Best regards
Dennis

Re: Assigning values to items (faders, buttons...) via scrip

PostPosted: Sat Dec 14, 2013 7:43 pm
by malkuth23
The problem with this is as soon as you change the node parameter the value will instantly be locked to the fader value.
You might be better off using relative values in the node and an encoder wheel.
You can also change encoder wheels multiplier. Very useful for making fine or coarse control.