Bound parameters keep their values in sync and will respond to changes from either parameter. For each parameter that is a bind master, it will have one or more bind reference parameters.
The bind master holds the current value. It can have exports and expressions and generally works like any other parameter, but its value can be also changed indirectly by the bind references.
A bind reference holds the location of the bind master. A bind reference is in a fourth "Bind" Parameter Mode, and will show up as purple text in parameter dialogs. It can only be changed via its its bind master, its UI, and its
Setting Up Binding
To set up, in the bind reference parameter, set its Parameter Mode to Bind, then put an expression that points to the bind master parameter, like
op('lfo1').par.phase. Thereafter, if there is change the bind master (in this case,
lfo1's Phase parameter) in any way, the bind reference will have the same value as the bind master.
If a bind reference parameter is changed using its parameter UI, it sets the bind master to that value as well. If you try to change the bind reference with python (like
OP.par.Parname.val = 2), it also sets the bind master to that value. In both cases the value then propagates from the bind master back to all its bind references.
A bind reference does not use its expression or export parameter modes.
You can have one or more bind references bound to one bind master, and you can also set up a chain where parameter C is the bind reference of parameter B, which is the bind reference of parameter A, and so on. That is, a bind reference can also be a bind master, but will have all the limitations of a bind reference such a not being able to use expression or export modes.
Setting Up by Dragging
You can set up binding by dragging parameters or by typing a bind expression.
Binding Parameters Using Mouse Drag
To bind parameters using the mouse, you will want to drag the bind master to the bind reference. Drag the parameter name from the bind master's parameter dialog into the parameter name or text entry field of the bind reference parameter. In the case of multi-value parameters, drag the name of the bind master onto the name of the bind reference.
Once you have done this, select Bind Parameter from the popup menu that appears.
Binding Parameters Using Bind Expressions
The mouse method above will write a bind expression automatically, but you can also write your own. Writing a bind expression is much like writing a normal parameter expression, but must resolve to a parameter object, like
The bind expression is accessed by expanding the bind reference's parameter and then selecting the purple box next to a parameter to put it in bind mode. The bind expression can then be entered into the parameter field entry.
You can also set the bind reference up through python:
Par.bindExpr = string
Binding is a Parameter Mode that ties two or more values together, where changing the value of any one of the bound values changes all of them. The actual value is stored in one place, whichever value is at the top of the bind chain, called the bind master. Parameters can be bind references, bind masters, or both. Table cells and bindCHOP channels can be bind masters only.
Any of the procedural data operators. OPs do all the work in TouchDesigner. They "cook" and output data to other OPs, which ultimately result in new images, data and audio being generated. See Node.
Parameters in TouchDesigner are an operator's settings (numbers, menus, flags, strings, paths) which the user can alter. Parameters for any operator can be opened by right-clicking on the operator and selecting "Parameters..." A currently selected operator's parameters can be viewed in a Network Editor by pressing the keyboard shortcut 'p'.