Override CHOP

From TouchDesigner 099 Wiki


The Override CHOP lets you take inputs from several CHOP sources, and uses the most-recently changed input channels to determine the output. For example, if a 16-channel CHOP comes from one MIDI device, and another 16-channel CHOP comes from another place like another device or a preset, then Override selects the most recently-changed channels and outputs those values.

The Override CHOP outputs the same channels as the first input. If subsequent inputs have more or less channels than the first input, the missing/extra channels are ignored. The output defaults to the channel values of the first input, but when a value changes in any monitored channel, that value will become the new output for the corresponding channel name or number. If the same channel name or number is changing in two or more inputs at the same time, precedence is given by input order.

The Override CHOP output is reset to the default each time the number of inputs to the CHOP changes or the method of matching (by number or by name) changes.

The CHOP length is the length of the first input. From frame to frame, if all values are the same, the output is unchanged.

An optional channel can be created that will tell you which input has the most recently changed channel.

PythonIcon.png overrideCHOP_Class

Parameters - Override Page

Match By /match - Monitors the channels in each input and matches them according to this menu.

  • Channel Number - Matches channels by their order number.
  • Channel Name - Matches channels by their name.

Create Input Index /makeindex - Creates a channel (specified by the Channel Name parameter below) that is an index indicating which input has the most recently changed channel.

Channel Name /indexname - Specifies the name of the index channel. Only used if the Create Input Index checkbox is selected.

Parameters - Common Page

See CHOP Common Page.

Standard Options and Local Variables