Cooking Flag

From TouchDesigner Documentation
Jump to: navigation, search

The Cooking flag is on components only. When the Cooking flag is on, it disables the cooking of the component's internal network. It is also known as the Cook flag, or Cooking Off flag. Example: op('/project1').allowCooking = True

To re-compute the output data of the Operators. An operator cooks when (1) its inputs change, (2) its Parameters change, (3) when the timeline moves forward in some cases, or (4) Scripting commands are run on the node. When the operator is a Gadget, it also cooks when a user interacts with it. When an operator cooks, it usually causes operators connected to its output to re-cook. When TouchDesigner draws the screen, it re-cooks all the necessary operators in all Networks, contributing to a frame's total "cook time".