Set up a dynamic link¶
Ways to create a link
A dynamic link can be created in different ways. Depending on how it is created, Q Studio automatically runs some settings, shown below:
Mode |
Effects |
---|---|
Manual selection of the source using the dynamic link window |
Q Studio sets the mode of the dynamic link. |
Dragging a source variable on a property |
Q Studio sets the mode of the dynamic link. |
Dragging a source variable on a graphical object |
|
Through the Advanced Dynamic Link Editor (see Advanced Dynamic Link Editor) |
|
Setting a Dynamic link by selecting a Source
In Project click a node whose property is to be set through dynamic link.
In Properties panel, near the desired property, click : the dynamic links window opens.
Select the source node.
Optional. If an attribute of a node is to be used as source, select it in Attribute.
Optional. If the value of the parent node is to be formatted according to the type of source data, select the appropriate format in the Format field.
(Only for array variables) In Array Indexes, enter the index value to select the relevant variable.
Click Select: the reference to the node or variable selected will appear in the field (see References to the source in the properties with dynamic value).
Setting a Dynamic Link by Dragging the Source
Dragging a Property
In Project click a node whose property is to be set through dynamic link.
Drag a node from Project to the Properties panel in the value field of the property whose value is to be set: the reference to the source variable will appear in the field (see References to the source in the properties with dynamic value).
Dragging a Graphical Object
From Project, drag a variable to a graphical object in the editor: Q Studio sets a dynamic link to the most appropriate property of the graphical object.
Setting a Dynamic Link Using the Advanced Dynamic Link Editor
In Project click a node whose property is to be set through dynamic link.
Near the value field of the property to be set, click , then click Advanced: the dynamic link editor will open.
Set the link and any transformations to be run on the reference value (see Using the Advanced Dynamic Link Editor).
References to the source in the properties with dynamic value
Depending on the type of source selected for dynamic linking, the source is displayed in the property value field in different ways.
If the source selected is… |
Then the value field of the property displayed… |
---|---|
a node or a variable |
the BrowseName of the source. |
an attribute of a node or of a variable |
BrowseName@[name of the attribute]. |
an array variable |
BrowseName[array index values]. |
an array index of the array variable |
BrowseName[array index number] (e.g. [1] = first array index). |
a property of a node |
the path of the source node. |
a node or a variable formatted by the user |
the information on the source, followed by [(formatted)]. |
Actions on the dynamic value of the properties
Action |
Description |
---|---|
Click BrowseName |
Select the source in the Project panel. |
Double-click the path of the source property |
Enable the change of the path. |
|
Displays the source node path and makes it possible to change it. |
See also
Related concepts
Related APIs
References