The Text DAT lets you edit free-form, multi-line ASCII text. It is used for scripts, notes, XML and other purposes. "Free-form text" is one of the two forms of DATs (the other being tables of rows and columns of cells, each cell containing a text string as in a Table DAT).
Text can be typed into the DAT when its Viewer Active is on, or in an external text editor. The Text DAT can get its data from a file on disk or from a file on the web. Use
http:// when specifying a remote text file. Text can also can be passed into the Text DAT through the node's input, however this text will not be editable.
NOTE: Previously the Text DAT allowed you to execute its text as a TouchDesigner script ("tscript") based on conditions defined on an Execute page, however this functionality has now been removed. Text DATs with execute parameters will be converted into the following Execute DATs the first time an older file is opened. The new Execute DATs are specialized to run their text as a script: CHOP Execute DAT runs its script when a CHOP channel changes, DAT Execute DAT when a DAT changes, Panel Execute DAT when a control panel changes, Parm Execute DAT when a parameter of a node changes, and OP Execute DAT when anything else about an operator changes, including creation and deletion of nodes in a component's network.
Use the Web DAT to fetch via a URL query.
Parameters - Text Page
/edit - Clicking this opens a text editor to add/edit/delete text from the DAT.
/file - The path and name of the file to load. Accepts .txt and .dat files.
Reload File button
/reload - When set to 1, reloads the file into the DAT.