Also known as: Automation Scalar
Provides a named variable that can be set from an automation script, so a script can change a value in your world each time it builds it.
Automation Variable requires a Pro license.
When to Use
Use an Automation Variable for any value you want an automation script to control. The variable can be output as a number, as a text string parameter, or as a text packet:
- Numeric settings: Drive numeric parameters on other devices.
- Filenames and other text settings: Drive text parameters, such as filenames.
- Text data: Feed a text packet to devices that take text input.
How to Use
Connect the device’s output to the parameter you want to control, and give the variable a name. When the world is built outside of automation, the device outputs its default value. When built from a script, the script can override the value by referencing the variable name.
- Set Output type to match what you want to drive: a number, a text parameter, or a text packet.
- Enter the variable’s name in Linked var, matching the name used in the script’s
<variables>section. - Set Default value or Default text to the value to use when the world is not built from a script.
- Connect the Parameter Output to the parameter or device you want to drive.
Inputs
None.
Outputs
| Port | Type | Description |
|---|---|---|
| Parameter Output | Parameter or Text | The variable’s value — either the default or the value provided by the automation script. A numeric or string parameter, or a text packet, depending on Output type. The port is labeled with the Linked var name once one is entered. |
Parameters
Linked var — The name of the variable that the automation script sets. This must match the variable name used in the script’s <variables> section.
Output type — What kind of value the device produces:
- Numeric Parameter (default) — a number, for driving numeric parameters on other devices.
- String Parameter — a text value, for driving text parameters such as filenames.
- Text Packet — a text packet, for devices that take text input.
Default value — The number to output when the world is not being built from an automation script. Default 0. Typed directly rather than set with a slider, and any number is accepted. Visible when Output type is Numeric Parameter.
Default text — The text to output when the world is not being built from an automation script. Visible when Output type is String Parameter or Text Packet.
Tips and Tricks
- Script variables can also be used directly in output filenames: put
<var:name>in a file output device’s filename and it is replaced with the variable’s value when the script runs.
Older Versions
Automation Variable devices from older project files use the original version, which only outputs numbers and labels its parameters Variable name and Default value:. They can be updated to the current version without any change in behavior.