How to Assign Dynamic Values
π― Learn how to assign dynamic values to element fields in AVStudio.
This guide explains how to identify dynamic-enabled fields, open the Pick Dynamic Value
modal, and choose between variables, parameters, or state entries for data binding.
π Identifying Dynamic Fieldsβ
Dynamic fields in AVStudio are marked with the {β}
icon.
When you hover over the icon, a tooltip appears showing Assign dynamic value
.
Clicking this icon opens the Pick Dynamic Value
modal, where you can link the selected field to a live data source.
π The tooltip also indicates the field name where the value will be applied β for example, Active Mode Index
or Text CSS Class Name
.
π Opening the Pick Dynamic Value
Modalβ
When you click the dynamic value icon {β}
, the Pick Dynamic Value
modal appears.
At the top, youβll see the name of the field youβre editing (e.g., Active Mode Index
).
The modal includes three tabs for selecting your data source: Variables
, Parameter
, and State entry
.
π Choosing a Data Sourceβ
Each tab represents a different type of data binding available in AVStudio.
Variables
β
Variables are placeholders for values that may change during runtime.
They are often used to display or update content dynamically β for example, showing temperature data, playback status, or connection state.
π Example: A variable can update the text of a label from βDisconnectedβ to βConnectedβ when a system status changes.
Parameter
β
Parameters define reusable configuration values that can be referenced across multiple elements or pages.
When you select the Parameter
tab, you can add or choose an existing parameter, set its data type (Boolean
, String
, or Number
), and specify a default value.
π Example: A Boolean
parameter can toggle a buttonβs state between true
and false
, controlling element visibility or action behavior.
State entry
β
State entries are system or device state variables that reflect the current condition of a connected system.
They are typically read from feedback channels and update automatically when the system changes.
π Example: A state entry can be bound to an indicator light, updating its color when a device turns on or off.
π Saving and Applyingβ
After selecting the desired source, click Save changes
.
The chosen binding will now appear beside the field, showing a green confirmation message or bound label.
π Bound fields automatically update whenever the linked variable, parameter, or state entry changes.
π Key Pointsβ
- The
{β}
icon indicates that a field supports dynamic data binding. - Use
Variables
for live data,Parameters
for reusable configurations, andState entries
for system feedback. - Bound values automatically refresh when the linked source updates.
- You can clear or reassign a dynamic value at any time by reopening the modal.
β Frequently Asked Questions (FAQ)β
Can I assign multiple dynamic values to one field?
No. Each field can only have one active dynamic source at a time.
What happens if a variable or parameter is deleted?
The bound field will lose its reference and revert to its default or last known value.
Can I apply functions to dynamic values?
Yes. You can use the fx
icon next to the field to apply post-processing functions to modify how the dynamic value is displayed or calculated.