DAT Execute DAT
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.
Parameters - DAT Execute Page
active - While on, the DAT will respond to the CHOP that is referenced.
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.
fromop - The path that the script will be executed from if the Execute From parameter is set to Specified Operator.
dat - The DAT which is monitored and will trigger the script to execute when its contents change.
tablechange - The onTableChange() method is called if the table changes in any way since the last cook.
rowchange - The onRowChange() method is called once for every row that changed (since its last cook).
colchange - The onColChange() method is called once for every column that changed (since its last cook).
cellchange - The onCellChange() method is called for every cell that changed since the last cook.
sizechange - The onSizeChange() method is called for every table size change since the last cook.
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 - Clicking this opens a text editor to edit text in the DAT.
Parameters - Common Page
language - ⊞ - Select how the DAT decides which script language to operate on.
input- The DAT uses the inputs script language.
node- The DAT uses it's own script language.
extension - ⊞ - Select the file extension this DAT should expose to external editors.
dat- various common file extensions.
- From Language
language- pick extension from DATs script language.
- Custom Extension
custom- Specify a custom extension.
customext - Specifiy the custom extension.
wordwrap - ⊞ - Enable Word Wrap for Node Display.
input- The DAT uses the inputs setting.
on- Turn on Word Wrap.
off- Turn off Word Wrap.
- Input 0 -
|• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •|
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.