CHOP Execute DAT

From Derivative
Revision as of 10:20, 1 September 2017 by Admin (Talk | contribs) (TD Editor)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Summary

The CHOP Execute DAT will run its script when the channel values of a specified CHOP change. You can specify which channels to look at, and trigger based on their values changing in various ways. The script gets called for every sample that changes, so when rendering one frame, it may get called 2 or more times per channel, depending on how many frames forward TouchDesigner has stepped (see Time Slicing).

CHOP Execute DATs are created with default python method placeholders. For each monitored condition in the parameters, there is a matching python method in the DAT. When a condition is turned on in the parameters, each time that condition is satisfied the corresponding python method will be executed.

PythonIcon.pngchopexecuteDAT_Class

CHOP Execute DAT on Old Wiki


Parameters - CHOP Execute Page

Active active - While on, the DAT will respond to the CHOP that is referenced.

Execute from executeloc - - (Tscript only) Determines the location the script is run from.

  • Current Node current - (Tscript only) The script is executed from the current node location.
  • This Node here - The script is executed from the parent of the DAT. The DAT executes from the parent to make siblings of the DAT easy to access: DAT scripts used to execute from inside the DAT.
  • Specified Operator op - The script is executed from the component specified in the Component parameter below.

From Operator fromop - The path that the script will be executed from if the Execute From parameter is set to Specified Operator.

CHOP chop - The CHOP whose channel change will trigger the DAT to execute its script.

Channel channel - Which channel will trigger change.

Off to On offtoon - The onOffToOn() method executes when the channel specified switches from off to on, called at the first "on" frame.

While On whileon - The whileOn() method executes when the channel specified is on. It is called once each frame.

On to Off ontooff - The onOnToOff() method executes when the channel specified switches from on to off, called at the first "off" frame.

While Off whileoff - The whileOff() method executes when the channel specified is off. It is called once each frame.

Value Change valuechange - The onValueChange() method executes when the channel specified changes value in any way. It is called once each frame.

While Off/On Frequency freq - - Enabled when using the While On or While Off options above. Determines if the DAT executes For Every Sample or Once Per Frame.

  • Execute For Every Sample everysample -
  • Execute Once Per Frame onceperframe -

Edit.. edit - Clicking this opens a text editor to edit text in the DAT.


Parameters - Common Page

Language language - - Select how the DAT decides which script language to operate on.

  • Input input - The DAT uses the inputs script language.
  • Node node - The DAT uses it's own script language.


Edit/View Extension extension - - Select the file extension this DAT should expose to external editors.

  • dat dat - various common file extensions.
  • From Language language - pick extension from DATs script language.
  • Custom Extension custom - Specify a custom extension.


Custom Extension customext - Specifiy the custom extension.


Word Wrap wordwrap - - Enable Word Wrap for Node Display.

  • Input input - The DAT uses the inputs setting.
  • On on - Turn on Word Wrap.
  • Off off - Turn off Word Wrap.


DATs
Art-Net • CHOP Execute • CHOP to • Clip • Convert • DAT•  Execute • DAT xport• Error • EtherDream • Evaluate • Examine • Execute • FIFO • File In • File Out • Folder • In • Indices • Info • Insert • Introduction To DATs id• Keyboard In • Merge • MIDI Event • MIDI In • Monitors • MQTT Client • Multi Touch In • Null • OP Execute • OP Find • OSC In • OSC Out • Out • Panel Execute • Parameter Execute • Perform • Render Pick • Reorder • Script • Select • Serial • SOP to • Sort • Substitute • Switch • Table • TCP/IP • Text • Touch In • Touch Out • Transpose • TUIO In • UDP In • UDP Out • UDT In • UDT Out • Web • WebSocket • XML