Hi Geoff,
this is a bit more complicated:
-Can a variable change the target of a fader?
You can't do it directly by changing the device inside the fader. But you could do it this way:
Creating a fader and an according fader inout node. Connect this fader input node to a PB Device Output Node.
If you want to change the target of the device output node, use this script twice (once for the Site ID and once for the Layer ID):
WDNodeSetParam,'NodeID','ParamID','Value'.
Example:
If you want to set the output to the Device 1.3 (=Site1, Layer3) and the device output node has the ID 10:
WDNodeSetParam,10,1,1
WDNodeSetParam,10,2,3
So the first parameter in the node points to the site ID, the second one to the layer ID.
-Can I stack together multiple variablew from multiple buttons? For example, pressing button one sets the variable to 1.1 pressing button two sets the variable to 1.2 pressing button one followed by button two sets the variable to 1.1, 1.2?
You can do this using several nodes.
Here my ideas to this.
Create your 2 buttons (in this case I describe please use Fullsize/Halfsize or Quartersize Buttons instead of CustomScript Buttons).
Create 2 Button Input Nodes and assign Button1 to the Node1, Button2 to the Node2.
Create a Variable eg. called V_1 with the value 0 (via script).
Connect the variable input node and the Button Input Node 1 with an ADD-Filter Node: add both values inside the node.
Create three script output nodes: two connected to the ADD filter node, one connected directly to the Button Input Node 2 ( see picture).
example.jpg
So let's go through the routine:
the variable v_1 is 0. If you now press the button 1, the ADD-result gets the value 1. Set the first script output node connected to the ADD filter node to this:
If Add-result = 1: and now you can set another variable to any value via script (eg. setting a variable called "v_device" to the value 1.1).
In the Script output node connected to Button Input Node 2 enter this:
If button input = 1: set the variable v_1 to the value of eg. 10 and set your other variable "v_device" eg. to the value 1.2.
If you now press button 1 again, the add-result gets the value 11. So the second script output could be set up like this:
If add-result = 11, set your variable eg. to "1.1 1.2" and you may reset the v_1 variable from 10 to 0 again.
So on the next press of button 1 the add-result will be 1 again and the first script output node will be executed again.
Please note: if you want to assign eg. a fader or Media panel to several devices at once, dont use a "," between the devices, just enter 1.1 1.2 with a space character in between.
I hope this helps and you get an idea of how to get what you want to have.
Best regards,
Julia
You do not have the required permissions to view the files attached to this post.