Select DAT

From Derivative
Jump to: navigation, search

Summary
[edit]

The Select DAT allows you to fetch a DAT from any other location in the project, and to select any subset of rows and columns if it is a table.

PythonIcon.pngselectDAT_Class


Parameters - Select Page

DAT dat - The path of the DAT being referenced.

Include First Row firstrow - Forces the first row to be selected even if it is not specified by the Select Rows settings.

Include First Col firstcol - Forces the first column to be selected even if it is not specified by the Select Cols settings.

Select Rows extractrows - - This parameter allows you to pick different ways of specifying the rows selected.

  • All all - All rows selected.
  • by Name byname - Rows selected using Start Row Name and End Row Name parameters.
  • by Index byindex - Rows selected using Start Row Index and End Row Index parameters.
  • by Start Name, End Index bynameindex - Rows selected using Start Row Name and End Row Index parameters.
  • by Start Index, End Name byindexname - Rows selected using Start Row Index and End Row Name parameters.
  • by Values bynames - Rows selected by specifying the row values explicitly.
  • by Condition byexpr - Rows selected by an expression to be evaluated for the from column.

Start Row Name rownamestart - Specify the row name to start the selection range from.

Start Row Index rowindexstart - Specify the row index to start the selection range from.

End Row Name rownameend - Specify the row name to end the selection range.

End Row Index rowindexend - Specify the row index to end the selection range.

Row Select Values rownames - Specify actual row names that you want to select. You can use pattern matching, for example row[1-4] will select all the rows names row1 thru row4.

Row Select Condition rowexpr - Specify an expression that will be evaluated. If the expression evaluates to true, the row will be selected.

Expand the parameter and you will see that it is in expression mode.

SelectDAT rowselectexpr.png

By default, the Python expression is re.match('.*',me.inputCell.val) != None. '.*' means match any character multiple times, so this expression matches all values. If you want to match the parent's operator name followed by any numeric number you can use me.parent().name+'[0-9]*', where '[0-9]*' matches any numerical string. '.*'+parent().name+'.*' will match any cell that contains the operator's parent name. You can check Regular Expression Operations for additional information on how to use the Python Regular Expression module.

In Tscript, you can access the cell value with the local variable $V, and the row and column with $R and $C

From Column fromcol - When selecting rows by values, this parameter selects which column to use when matching cell values to Selected Row Values to determine which rows are selected.

Select Cols extractcols - - This parameter allows you to pick different ways of specifying the columns selected.

  • All all - All columns selected.
  • by Name byname - Columns selected using Start Col Name and End Col Name parameters.
  • by Index byindex - Columns selected using Start Col Index and End Col Index parameters.
  • by Start Name, End Index bynameindex - Columns selected using Start Col Name and End Col Index parameters.
  • by Start Index, End Name byindexname - Columns selected using Start Col Index and End Col Name parameters.
  • by Values bynames - Columns selected by specifying the column values explicitly.
  • by Condition byexpr - Rows selected by an expression to be evaluated for the from row.

Start Col Name colnamestart - Specify the column name to start the selection range from.

Start Col Index colindexstart - Specify the column index to start the selection range from.

End Col Name colnameend - Specify the column name to end the selection range.

End Col Index colindexend - Specify the column index to end the selection range.

Col Select Values colnames - Specify actual column names that you want to select. You can use pattern matching, for example colvalue[1-4] will select all the columns named colvalue1 thru colvalue4.

Col Select Condition colexpr - Specify an expression that will be evaluated. If the expression evaluates to true, the column will be selected. See Row Select Condition for more details.

From Row fromrow - When extracting columns by Specified Names, this parameter selects which row to use when matching cell values to Selected Col Values to determine which columns are selected.

Output output - - Determines what format will be used for output from the DAT.

  • Input Data data - Passes through data from first input without manipulation.
  • Strings string - Evaluates input data as strings, including expanding any variable values to full strings.
  • Expressions expr - Evaluates input data as expressions.


Parameters - Common Page

Language language - -

  • Input input -
  • Node node -

Edit/View Extension extension - -

  • dat dat -
  • frag frag -
  • glsl glsl -
  • html html -
  • md md -
  • py py -
  • rtf rtf -
  • tsv tsv -
  • txt txt -
  • vert vert -
  • xml xml -
  • From Language languageext -
  • Custom Extension customext -

Custom Extension customext -

Word Wrap wordwrap - -

  • Input input -
  • On on -
  • Off off -


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

An that manipulates text strings: multi-line text or tables. Multi-line text is often a command , but can be any multi-line text. are rows and columns of cells, each containing a text string.

A text string that contains data (string, float, list, boolean, etc.) and operators (+ * < etc) that are evaluated by the node's language (python or Tscript) and returns a string, float list or boolean, etc. Expressions are used in parameters, and in scripts.

TouchDesigner's original built-in Command scripting language prior to .

The generic thing that holds an , and includes (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.