PARAM_CONNECTION
This element connects two parameters together: whenever one of the parameters is changed, the other one follows it. It is stronger than two PARAM_LINK elements connecting both parameters because it ensures that both parameters keep the same value.
With two PARAM_LINKs the risk is that they are not equivalent, so they may get into unstable states.
Attributes brief detailed show all inherited
Examples
A very practical example is when you want to force a value for a parameter (for example when you do not want to have a control for it). In this case just create a parameter with a single possible value and create a connection between this parameter and the one you want to constrain.
In the example below param A is constrained to a fixed parameter (with value 0.3), params B C and D are connected, but B to D is not "constrained", so D is not limited by the range of B.

- <!-- create params -->
- <PARAM id="A" min="0" max="1" default="0" />
- <PARAM id="B" min="0" max="1" default="0" />
- <PARAM id="C" min="-2" max="2" default="0" />
- <PARAM id="D" min="-2" max="2" default="0" />
- <!-- test several param connections -->
- <PARAM id="fixed_value" min="0.3" max="0.3" default="0.3" />
- <PARAM_CONNECTION id1="A" id2="fixed_value" />
- <PARAM_CONNECTION id1="B" id2="C" />
- <PARAM_CONNECTION id1="B" id2="D" constraint="false" />
- <!-- layout with sliders -->
- <ROW v_margin="10">
- <REPEAT index_list="A;B;C;D">
- <COLUMN width="35">
- <TEXT value="$index$" />
- <LM_SLIDER_A param_id="$index$" />
- <PARAM_TEXT_CONTROL param_id="$index$" />
- </COLUMN>
- </REPEAT>
- </ROW>
See more examples in PARAM_LINK, PARAM_MULTI_LINK and Params 101.
Comments
Please, authorize to view and post comments.