Variable Management
Create Variable
You can create a variable by clicking on the + icon of the Custom variable group. Once you choose what information you would like your variable to hold by clicking on the correct menu entry, the variable will appear under the Custom variable group.

Rearrange Variables
You can change the order of a variable within its Variable group by clicking on its icon and dragging it to the spot you want to place it.

You can also move a variable to another Variable group by dragging from its icon to the collapsible icon of the wanted Variable group.

Delete Variable
You can delete a Variable by clicking on its Trash icon or by right-clicking on the Variable icon and selecting Delete.

Adjusting Numeric Variables
Every numeric Variable has a setting to limit the minimum and maximum values. You can change it by left-clicking on the property and selecting Min and max setting. Similarly, the drag rate can be adjusted by left-clicking on the dropdown menu.

With some variables, you can toggle between appearances. You can do that by right-clicking on the Variable icon and selecting the appearance dropdown menu. You can change the Integer Variable to show As Integer or As Dropdown. This is useful for uniquely naming each integer. Likewise, Float Variables that are used for time and duration, have a similar dropdown menu and can appear As Time or As Float.
Using Variables in Layouts
Drag a Variable on the layout either by dragging and holding shift or ctrl which skips the popup menu, or by dragging and dropping, which brings up a menu where you can select either a Getter or a Setter node.

Getter and Setter Nodes
Getter node is used to get the current value of a variable
Setter node is used to set the current value of a variable
Example of using Global Variables
For example, if we want to control the opacity of two video layers with just one global variable we create one by pressing the + icon in the Global variables window

You can choose from a selection of variables. Let's choose the Float variable for this tutorial.

It is a good practice, to give your variables descriptive names, so let's rename it to Opacity and change its value.

Now when we open another video layer we can see that under Global Variables there is the Opacity float variable we created on another layer with the same values.

Reference Node Replacement
In LightAct, you have the option to substitute the Getter or Setter node of a specific variable with the Getter or Setter node of another variable.
To do this, drag from the Variable icon of the desired variable to the Reference node you want to substitute.

Last updated
Was this helpful?