Difference between revisions of "Table DAT"

From TouchDesigner Documentation
Jump to: navigation, search
(Table DAT Auto Create)
(TD Editor)
Line 1: Line 1:
 
+
{{Summary
{{Summary|OPfamily=DAT|OPtype=table|OPlabel=Table|OPlicense=Non-Commercial|OPclass=tableDAT_Class|OPfilter=False
+
|OPfamily=DAT
 
+
|OPlabel=Table
|short=
+
|OPfilter=False
 
+
|long=The Table DAT lets you hand-edit or create a table of rows and columns of cells, each cell containing a text string. A "table" is one of the two forms of DATs (the other being simply lines of "free-form" text via the [[Text DAT]]).
|long=
 
 
 
}}
 
 
 
{{ParameterPage|Pagename=Table|OPfamily=DAT
+
In the Table DAT's viewer you can add rows and columns and type text into any cell of its [[Node Viewer|node viewer]]. When a Table DAT has its [[Viewer Active]] on, right-mouse click on a cell to modify the table's structure, use the <Tab> key to jump to the next cell, and the up/down arrow keys to navigate to adjacent cells.
 
+
|Pagesummary=
+
You can also put strings into table cells using something like <code>op('table1')[2,'select'] = 'yes'</code>, or append rows using <code>.appendRow()</code> in python. See also the [[Script DAT]].
 
+
|items=
+
The Table DAT can also can load a table from a <code>.txt</code> or <code>.dat</code> file on disk or on the web. Use <code>http://</code> when specifying a table on the internet. The text will be converted into tab-delimited tables.
 
+
|OPclass=tableDAT_Class
+
|OPtype=table
{{ParButton|OPfamily=DAT|OPtype=table|Parname=edit|Parlabel=Edit..|Parorder=0
+
|short=The Table DAT lets you hand-edit or create a table of rows and columns of cells, each cell containing a text string.
 
+
|OPlicense=Non-Commercial
 +
}}
 +
{{ParameterPage
 +
|items=
 +
{{ParButton
 +
|Parlabel=Edit..
 +
|OPfamily=DAT
 +
|Parname=edit
 
|Parsummary=
 
|Parsummary=
 
+
|OPtype=table
}}
+
|Parorder=0
{{ParFilePath|OPfamily=DAT|OPtype=table|Parname=file|Parlabel=File|Parorder=1
+
}}
 
+
{{ParFilePath
 +
|Parlabel=File
 +
|OPfamily=DAT
 +
|Parname=file
 
|Parsummary=
 
|Parsummary=
 
+
|OPtype=table
}}
+
|Parorder=1
{{ParToggle|OPfamily=DAT|OPtype=table|Parname=loadonstart|Parlabel=Load on Start|Parorder=2
+
}}
 
+
{{ParToggle
 +
|Parlabel=Load on Start
 +
|OPfamily=DAT
 +
|Parname=loadonstart
 
|Parsummary=
 
|Parsummary=
 
+
|OPtype=table
}}
+
|Parorder=2
{{ParButton|OPfamily=DAT|OPtype=table|Parname=loadonstartpulse|Parlabel=Load File|Parorder=3
+
}}
 
+
{{ParButton
 +
|Parlabel=Load File
 +
|OPfamily=DAT
 +
|Parname=loadonstartpulse
 
|Parsummary=
 
|Parsummary=
 
+
|OPtype=table
}}
+
|Parorder=3
{{ParToggle|OPfamily=DAT|OPtype=table|Parname=write|Parlabel=Write on Toe Save|Parorder=4
+
}}
 
+
{{ParToggle
 +
|Parlabel=Write on Toe Save
 +
|OPfamily=DAT
 +
|Parname=write
 
|Parsummary=
 
|Parsummary=
 
+
|OPtype=table
}}
+
|Parorder=4
{{ParButton|OPfamily=DAT|OPtype=table|Parname=writepulse|Parlabel=Write File|Parorder=5
+
}}
 
+
{{ParButton
 +
|Parlabel=Write File
 +
|OPfamily=DAT
 +
|Parname=writepulse
 
|Parsummary=
 
|Parsummary=
 
+
|OPtype=table
}}
+
|Parorder=5
{{ParToggle|OPfamily=DAT|OPtype=table|Parname=removeblank|Parlabel=Remove Blank Lines|Parorder=6
+
}}
 
+
{{ParToggle
 +
|Parlabel=Remove Blank Lines
 +
|OPfamily=DAT
 +
|Parname=removeblank
 
|Parsummary=
 
|Parsummary=
 
+
|OPtype=table
}}
+
|Parorder=6
{{ParToggle|OPfamily=DAT|OPtype=table|Parname=dims|Parlabel=Exact Dimensions|Parorder=7
+
}}
 
+
{{ParToggle
 +
|Parlabel=Exact Dimensions
 +
|OPfamily=DAT
 +
|Parname=dims
 
|Parsummary=
 
|Parsummary=
 
+
|OPtype=table
}}
+
|Parorder=7
{{ParInteger|OPfamily=DAT|OPtype=table|Parname=rows|Parlabel=Rows|Parorder=8
+
}}
 
+
{{ParInteger
|Parsummary=
+
|Parlabel=Rows
 
+
|OPfamily=DAT
}}
+
|Parname=rows
{{ParInteger|OPfamily=DAT|OPtype=table|Parname=cols|Parlabel=Columns|Parorder=9
+
|Parsummary=
 
+
|OPtype=table
|Parsummary=
+
|Parorder=8
 
+
}}
}}
+
{{ParInteger
 
+
|Parlabel=Columns
}}
+
|OPfamily=DAT
+
|Parname=cols
{{:DAT Generator Common Page}}
+
|Parsummary=
{{History}}
+
|OPtype=table
{{DATNavBox|OPfamily=DAT}}
+
|Parorder=9
{{#invoke:Category|list|DATs}}
+
}}
 +
 +
|OPfamily=DAT
 +
|Pagesummary=
 +
|Pagename=Table
 +
}}
 +
{{:DAT Generator Common Page
 +
}}
 +
{{History
 +
}}
 +
{{DATNavBox
 +
|OPfamily=DAT
 +
}}
 +
{{#invoke:Category
 +
|list|DATs}}

Revision as of 10:57, 5 September 2017

  • Invalid title: ""

Summary
[edit]

The Table DAT lets you hand-edit or create a table of rows and columns of cells, each cell containing a text string. A "table" is one of the two forms of DATs (the other being simply lines of "free-form" text via the Text DAT).

In the Table DAT's viewer you can add rows and columns and type text into any cell of its node viewer. When a Table DAT has its Viewer Active on, right-mouse click on a cell to modify the table's structure, use the <Tab> key to jump to the next cell, and the up/down arrow keys to navigate to adjacent cells.

You can also put strings into table cells using something like op('table1')[2,'select'] = 'yes', or append rows using .appendRow() in python. See also the Script DAT.

The Table DAT can also can load a table from a .txt or .dat file on disk or on the web. Use http:// when specifying a table on the internet. The text will be converted into tab-delimited tables.

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


Parameters - Page

Template:ParButton Template:ParFilePath Template:ParToggle Template:ParButton Template:ParToggle Template:ParButton Template:ParToggle Template:ParToggle Template:ParInteger Template:ParInteger


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.

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

A form of DATs (Data Operators) that is structured as rows and columns of text strings.

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.