Macro

From TouchDesigner Documentation
Jump to: navigation, search


A macro is a single word that represents a script of commands. The user can pass arguments to the script via the macro.

Access Macros via Dialogs -> Macros in the TouchDesigner menu bar, and learn about the dialog at Macros Dialog.

Macros can be created locally in any component. A Text DAT placed inside a component's local/macros component will define a macro for the component, the name of the macro is the name of the Text DAT. TouchDesigner will search for a macro in the current component first, if not found it will look in the parent component, and so on up to the Root. Any macro defined in the root will be available for use anywhere in the project. The Macros Dialog can be used to manage macros defined in any component.

Macros can also be defined more simply by using the Tscript Macro Command.

An Operator Family that manipulates text strings: multi-line text or tables. Multi-line text is often a command Script, but can be any multi-line text. Tables are rows and columns of cells, each containing a text string.

A Tscript-only script that executes one or more scripting language commands. The F1 to F12 keys run macros. The F1 macro puts you in Perform Mode. See also Script, DAT and Python.