Difference between revisions of "Sort DAT"

From TouchDesigner Documentation
Jump to: navigation, search
(TD Editor)
(TD Editor)
Line 21: Line 21:
 
|Parname=sortmethod
 
|Parname=sortmethod
 
|Itemname=colname
 
|Itemname=colname
|Itemsummary=
+
|Itemsummary=Sort rows using the column specified under the <span class="tipTextDAT">Name</span> parameter.
 
}}
 
}}
 
{{Menuitem
 
{{Menuitem
Line 28: Line 28:
 
|Parname=sortmethod
 
|Parname=sortmethod
 
|Itemname=colindex
 
|Itemname=colindex
|Itemsummary=
+
|Itemsummary=Sort rows using the column specified under the <span class="tipTextDAT">Index</span> parameter.
 
}}
 
}}
 
{{Menuitem
 
{{Menuitem
Line 35: Line 35:
 
|Parname=sortmethod
 
|Parname=sortmethod
 
|Itemname=colpreserve
 
|Itemname=colpreserve
|Itemsummary=
+
|Itemsummary=Uses the current ordering of the input. This sorting allows parameters such as Preserve First, Unique Output, and Reverse Output to be applied to the original input.
 
}}
 
}}
 
{{Menuitem
 
{{Menuitem
Line 42: Line 42:
 
|Parname=sortmethod
 
|Parname=sortmethod
 
|Itemname=rowname
 
|Itemname=rowname
|Itemsummary=
+
|Itemsummary=Sort columns using the row specified under the <span class="tipTextDAT">Name</span> parameter.
 
}}
 
}}
 
{{Menuitem
 
{{Menuitem
Line 49: Line 49:
 
|Parname=sortmethod
 
|Parname=sortmethod
 
|Itemname=rowindex
 
|Itemname=rowindex
|Itemsummary=
+
|Itemsummary=Sort columns using the row specified under the <span class="tipTextDAT">Index</span> parameter.
 
}}
 
}}
 
{{Menuitem
 
{{Menuitem
Line 56: Line 56:
 
|Parname=sortmethod
 
|Parname=sortmethod
 
|Itemname=rowpreserve
 
|Itemname=rowpreserve
|Itemsummary=
+
|Itemsummary=Uses the current ordering of the input. This sorting allows parameters such as Preserve First, Unique Output, and Reverse Output to be applied to the original input.
 
}}
 
}}
 
 
|Parsummary=
+
|Parsummary=Determines how the table will be sorted.
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=0
 
|Parorder=0
Line 67: Line 67:
 
|OPfamily=DAT
 
|OPfamily=DAT
 
|Parname=name
 
|Parname=name
|Parsummary=
+
|Parsummary=When using <span class="tipTextDAT">Sort</span> ''Specify Row/Column Name'', specify the name in this parameter. If the sort name does not find a match, the output will be unsorted.
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=1
 
|Parorder=1
Line 75: Line 75:
 
|OPfamily=DAT
 
|OPfamily=DAT
 
|Parname=index
 
|Parname=index
|Parsummary=
+
|Parsummary=When using <span class="tipTextDAT">Sort</span> ''Specify Row/Column Index'', specify the index in this parameter. If the sort index is -1 or out of bounds, the output will be unsorted.
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=2
 
|Parorder=2
Line 89: Line 89:
 
|Parname=order
 
|Parname=order
 
|Itemname=alpha
 
|Itemname=alpha
|Itemsummary=
+
|Itemsummary=Use alphabetical sorting. Numbers are treated as characters, sorted by their ASCII values.
 
}}
 
}}
 
{{Menuitem
 
{{Menuitem
Line 96: Line 96:
 
|Parname=order
 
|Parname=order
 
|Itemname=alphanum
 
|Itemname=alphanum
|Itemsummary=
+
|Itemsummary=Use alphanumerical sorting.
 
}}
 
}}
 
{{Menuitem
 
{{Menuitem
Line 103: Line 103:
 
|Parname=order
 
|Parname=order
 
|Itemname=nums
 
|Itemname=nums
|Itemsummary=
+
|Itemsummary=Use numerical sorting. Characters are all treated as 0, incoming order is preserved.
 
}}
 
}}
 
{{Menuitem
 
{{Menuitem
Line 110: Line 110:
 
|Parname=order
 
|Parname=order
 
|Itemname=random
 
|Itemname=random
|Itemsummary=
+
|Itemsummary=Randomly sorts the table, uses random <span class="tipTextDAT">Seed</span> parameter below.
 
}}
 
}}
 
 
|Parsummary=
+
|Parsummary=Determines the type of sorting.
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=3
 
|Parorder=3
Line 121: Line 121:
 
|OPfamily=DAT
 
|OPfamily=DAT
 
|Parname=seed
 
|Parname=seed
|Parsummary=
+
|Parsummary=The random seed when <span class="tipTextDAT">Sort Order</span> is set to <span class="tipTextDAT">Random</span>.
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=4
 
|Parorder=4
Line 129: Line 129:
 
|OPfamily=DAT
 
|OPfamily=DAT
 
|Parname=ignorecase
 
|Parname=ignorecase
|Parsummary=
+
|Parsummary=Ignores case sensitivity when Sort Order is set to Alphabetical or Alphabetical with Numbers.
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=5
 
|Parorder=5
Line 137: Line 137:
 
|OPfamily=DAT
 
|OPfamily=DAT
 
|Parname=preservefirst
 
|Parname=preservefirst
|Parsummary=
+
|Parsummary=Does not resort the first row or column (depending if <span class="tipTextDAT">Sort</span> is set to Rows or Columns).
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=6
 
|Parorder=6
Line 168: Line 168:
 
}}
 
}}
 
 
|Parsummary=
+
|Parsummary=Remove duplicate rows/column entries in the sorted row/column.
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=7
 
|Parorder=7
Line 176: Line 176:
 
|OPfamily=DAT
 
|OPfamily=DAT
 
|Parname=reverse
 
|Parname=reverse
|Parsummary=
+
|Parsummary=Reverses the sort order.
 
|OPtype=sort
 
|OPtype=sort
 
|Parorder=8
 
|Parorder=8

Revision as of 10:29, 5 September 2017

  • Invalid title: ""

Summary
[edit]

The Sort DAT will sort table DAT data by row or column.

PythonIcon.png[[{{{opClass}}}]]


Parameters - Page

Template:ParMenu Template:ParString Template:ParInteger Template:ParMenu Template:ParFloat Template:ParToggle Template:ParToggle Template:ParMenu Template:ParToggle


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.
  • frag frag -
  • glsl glsl -
  • html html -
  • md md -
  • py py -
  • rtf rtf -
  • tsv tsv -
  • txt txt -
  • vert vert -
  • xml xml -
  • From Language languageext - pick extension from DATs script language.
  • Custom Extension customext - 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.

TouchDesigner Build:

DATs
Art-Net • CHOP Execute • CHOP to • Clip • Convert • CPlusPlus • DAT •  Execute • DAT xport • Error • EtherDream • Evaluate • Examine • Execute • FIFO • File In • File Out • Folder • In • Indices • Info • Insert • Experimental:JSON • Keyboard In • Lookup • Merge • MIDI Event • MIDI In • Monitors • MQTT Client • Multi Touch In • NDI • Null • OP Execute • OP Find • OSC In • OSC Out • Out • Panel Execute • Parameter • Parameter Execute • Perform • Render Pick • Reorder • Script • Select • Serial • SocketIO • 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 Client • Web • Web Server • Experimental:Web Server • 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.

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.