Variable Management

Good to know: Variable management is the same for layer and global variables alike.

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.

Good to know: You can also create different variable groups by clicking on the Add group button at the bottom of the Layer variables or Global variables collapsible.

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.

Good to know: This can be extremely useful when you copy Reference nodes of Layer variables to other layers in the project.

Last updated