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

Moderator: Moderator Group

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

Postby claude.rivet » Fri Dec 13, 2013 4:42 pm

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
claude.rivet
 
Posts: 67
Joined: Tue Aug 07, 2012 5:40 pm

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

Postby asherrobinson » Sat Dec 14, 2013 2:07 am

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
asherrobinson
 
Posts: 6
Joined: Tue Sep 13, 2011 10:33 am
Location: USA

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

Postby Dennis Kuypers » Sat Dec 14, 2013 1:41 pm

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
You do not have the required permissions to view the files attached to this post.
Dennis Kuypers
Product Developer, Software

Online Manual
User avatar
Dennis Kuypers
coolux Germany
 
Posts: 771
Joined: Thu Jul 05, 2012 12:18 pm

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

Postby malkuth23 » Sat Dec 14, 2013 7:43 pm

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.
Matthew Newman-Saul
Theatrical Concepts
mattns@theatrical.com
User avatar
malkuth23
 
Posts: 354
Joined: Tue Apr 20, 2010 7:14 pm
Location: New Orleans, LA


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 1 guest