Substitute DAT

From Derivative
Jump to: navigation, search


Summary

The Substitute DAT changes the cells of the incoming DAT using pattern matching and substitution strings. It outputs a table with the same number of rows and columns.

See examples below. Also you can use the second input to provide a table of strings to substitute, the first column being the "before" strings and the second column being the "after" strings.

PythonIcon.pngsubstituteDAT_Class


Parameters - Substitute Page

Before before - Search term to replace. The following special characters may be used:

  • * - match any number of characters
  •  ? - match a single character
  • [] - match any character defined within the brackets

To match these special characters exactly, put a backslash (\) before the special character.

After after - The replacement term. This replaces everything matched in the search term. Spaces are permitted.

Match match - - Specify where to match:

  • Anywhere anywhere - Matches any part of the string.
  • Exact exact - The string must match the search term exactly.
  • At Start start - Match the search term to the beginning of the string.
  • At End end - Match the search term to the end of the string.

Case Sensitive case - Respect case sensitivity in search term.

Expand the From String expand - Expand variables and back quotes in the From string.

Expand the To String expandto - Expand variables and back quotes in the To string.

First Match Only first - Replaces only the first instance of the matching string.



Parameters - Scope Page

Exclude First Row xfirstrow - Forces the first row to be ignored even if it is not specified by the Select Rows settings.

Exclude First Col xfirstcol - Forces the first column to be ignored even if it is not specified by the Select Cols settings.

Select Rows extractrows - -

  • All all -
  • by Name byname -
  • by Index byindex -
  • by Start Name, End Index bynameindex -
  • by Start Index, End Name byindexname -
  • by Values bynames -
  • by Condition byexpr -

Start Row Name rownamestart -

Start Row Index rowindexstart -

End Row Name rownameend -

End Row Index rowindexend -

Row Select Values rownames -

Row Select Condition rowexpr -

From Column fromcol -

Select Cols extractcols - -

  • All all -
  • by Name byname -
  • by Index byindex -
  • by Start Name, End Index bynameindex -
  • by Start Index, End Name byindexname -
  • by Values bynames -
  • by Condition byexpr -

Start Col Name colnamestart -

Start Col Index colindexstart -

End Col Name colnameend -

End Col Index colindexend -

Col Select Values colnames -

Col Select Condition colexpr -

From Row fromrow -



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

A parameter in most CHOPs that restricts which channels of that CHOP will be affected. Normally all channels of a CHOP are affected by the operator.

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.