DAT Execute DAT

From Derivative
Jump to: navigation, search

Summary
[edit]

The DAT Execute DAT monitors another DAT's contents and runs a script when those contents change. The other DAT is usually a table.

DAT 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.pngdatexecuteDAT_Class


Parameters - DAT 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 operator specified in the From Operator parameter below.

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

DAT dat - The DAT which is monitored and will trigger the script to execute when its contents change.

Table Change tablechange - The onTableChange() method is called if the table changes in any way since the last cook.

Row Change rowchange - The onRowChange() method is called once for every row that changed (since its last cook).

Column Change colchange - The onColChange() method is called once for every column that changed (since its last cook).

Cell Change cellchange - The onCellChange() method is called for every cell that changed since the last cook.

Size Change sizechange - The onSizeChange() method is called for every table size change since the last cook.

Execute execute - - Determines if the methods are executed at the start of the frame or end of the frame.

  • Start of Frame start - The method will be called from the start of the frame. If a row changes 4 times during a frame then the method will run 4 times as well (useful for Multi Touch In DAT events for example).
  • End of Frame end - The method will execute at most one time per frame, at the end of the frame, even if it triggered several times in one frame. If, for example, Monitor is set to Row, a row may change several times in a frame, but it will be called only once for each row.

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 • Experimental:CPlusPlus • 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 • Experimental:Lookup • Merge • MIDI Event • MIDI In • Monitors • MQTT Client • Multi Touch In • Experimental:NDI • Null • OP Execute • OP Find • OSC In • OSC Out • Out • Panel Execute • Experimental:Parameter • 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

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.

An Operator Family which operate on Channels (a series of numbers) which are used for animation, audio, mathematics, simulation, logic, UI construction, and many other applications.

The generic thing that holds an Operator, and includes Flags (display, bypass, lock, render, immune) and its position/size in the network. Whether you "lay down an Operator" or "lay down an Node", you're doing the same thing.

Any of the procedural data operators. OPs do all the work in TouchDesigner. They "cook" and output data to other OPs, which ultimately result in new images, data and audio being generated. See Node.

The term "Frame" is used (1) in the Timeline, (2) as a time-unit in CHOPs, (3) as a time-unit in TOPs, and (4) with movies images which are read and created with TOPs.