Variables Dialog

From TouchDesigner Documentation
Jump to: navigation, search
Built-in variables
Root variables


Description
[edit]

The Variables dialog lets you add, edit, and delete Variables. Multiple tabs in the dialog give you access to Environment, Built-in, Root, and Component variables.

There is more information on environment variables, built-in variables, local Operator variables and Script variables, and other variable types in the Variables article.

Variables
[edit]

The variables are listed in the dialog with the variables name in the left column, and the variable's value in the right column. Note that Environment and Built-in variables are not editable, they are read-only.

When there are more than 19 variables in the list, use the scroll bar on the right side to look through them.

The dialog's titlebar can be grabbed to drag the dialog around the screen. To close the dialog, click the x button in the upper-right corner.

VariablesTitlebar.jpg

There are separate tabs for Environment, Built-in, Root, and Component variables.

VariablesTabs.jpg

To view Component variables, drag a component from its network and drop it onto the network path field to the right of the Component tab. The Component Variables for that component will then be displayed in the list below.

VariablesDialogComponentView.jpg

Adding a Variable
[edit]

VariableAdd.jpg

The text fields at the top of the display list are used to add variables. Enter the name of the variable in the name field on the left, then enter the value in the field on the right. Click the Add button to add the variable, it will be displayed in the list below.

To add to Root variables, make sure the Root tab is select before adding the variable. To add a component variable, drag and drop the component onto the network path field before adding the variable.

Editing a Variable
[edit]

VariableEdit.jpg

To edit a variables's name or value, click directly in the field and make the change. The name or value is updated after pressing Enter or clicking in another field.

Options menu
[edit]

Right-click on any variable to open the options menu.

VariablesOptionsMenu.jpg

Yanking a Variable
[edit]

You can 'yank' a variables to paste it into a text field anywhere in TouchDesigner. To yank a variable, right-click on it to open the options menu and select Yank Variable.

Deleting a Variable
[edit]

To delete a variable, right-click on it to open the options menu and select Delete.

TouchDesigner is a hierarchy of components. "root" is the top-most network in the hierarchy. The Path is simply /. A typical path is /project1/moviein1.

An Operator Family that contains its own Network inside. There are twelve 3D Object Component and eight 2D Panel Component types. See also Network Path.

A set of commands located in a Text DAT that are triggered to run under certain conditions. There are two scripting languages in TouchDesigner: Python and the original Tscript. Scripts and single-line commands can also be run in the Textport.