The term "flag" in TouchDesigner refers to the indicator of states of an Operator (the Bypass, Display, Lock flags etc).
Operator flags are located around a node in a network pane and/or in a network's "table" view (press "T" in the network to go Table View ).
When you press "T" in a network pane, it shows nodes in a table format, where the complete set of flags is visible on the columns.
Flags are not parameters and therefore changing a flag does not in itself cause a node to cook. You cannot export to a flag.
All flags are set using, for example,
op('nodename').lock = True.
To program in python all common operator flags, see the Flags section in: OP_Class, and the classes for each operator family.
Flags on all Nodes
- Viewer Flag
- Viewer Active Flag
- Lock Flag - the data the node outputs is frozen in memory (and saved in the
- Bypass Flag - the first input is passed directly to the output
- Cooking Flag - on a component, will cause nodes inside not to cook.
- Immune Flag
- Current Flag - the node is the current node in a network
- Selected Flag - the node is one of the selected nodes in a network.
- Expose Flag - the node can be hidden from view in a network.
- Python Flag - sets language of a node to be Python (the default).
Flags on 3D Object components
- Render - if off, the object will not be seen in any render of the Render TOP or Render Pass TOP.
- Display - if off, the object will not be seen in any camera viewer.
- Pickable - if off, the object will not be selectable in 3D Geometry Viewers or the SOP Editor.
Flags on CHOPs
- Export - if off, nothing is exported from that CHOP.