Difference between revisions of "Switch DAT"

From TouchDesigner Documentation
Jump to: navigation, search
(TD Editor)
(cleaning)
(Tag: 2018.28070)
 
Line 1: Line 1:
 
{{Summary
 
{{Summary
|OPfamily=DAT
+
|opFamily=DAT
|OPlabel=Switch
+
|opLabel=Switch
|OPfilter=True
+
|opFilter=True
 
|long=The Switch DAT is a multi-input operator which lets you choose which input is output by using the <span class="tipTextDAT">Input</span> parameter.
 
|long=The Switch DAT is a multi-input operator which lets you choose which input is output by using the <span class="tipTextDAT">Input</span> parameter.
|OPclass=switchDAT_Class
+
|opClass=switchDAT_Class
|OPtype=switch
+
|opType=switch
 
|short=The Switch DAT is a multi-input operator which lets you choose which input is output by using the <span class="tipTextDAT">Input</span> parameter.
 
|short=The Switch DAT is a multi-input operator which lets you choose which input is output by using the <span class="tipTextDAT">Input</span> parameter.
|OPlicense=Non-Commercial
+
|opLicense=Non-Commercial
 
}}
 
}}
 
{{ParameterPage
 
{{ParameterPage
 
|items=
 
|items=
{{ParInteger
+
{{Parameter|parLabel=Index
|Parlabel=Index
+
|opFamily=DAT
|OPfamily=DAT
+
|parName=index
|Parname=index
+
|parSummary=Selects which input to pass though to the output. The first input is 0.
|Parsummary=Selects which input to pass though to the output. The first input is 0.
+
|opType=switch
|OPtype=switch
+
|parOrder=0
|Parorder=0
+
|parType=
}}
+
|parReadOnly=
 +
|parItems=
 +
}}
 
 
|OPfamily=DAT
+
|opFamily=DAT
|Pagesummary=
+
|pageSummary=
|Pagename=Switch
+
|pageName=Switch
 
}}
 
}}
 
{{:DAT Filter Common Page
 
{{:DAT Filter Common Page
 
}}
 
}}
{{History
+
{{InputsPage
 +
|opFamily=DAT
 +
|opInputs={{OPInput
 +
|opFamily=DAT
 +
|inputIndex=0
 +
|inputName=
 +
|inputSummary=
 +
}}
 +
}}{{History
 
}}
 
}}
 
{{DATNavBox
 
{{DATNavBox
|OPfamily=DAT
+
|opFamily=DAT
 
}}
 
}}
 
{{#invoke:Category
 
{{#invoke:Category
 
|list|DATs}}
 
|list|DATs}}

Latest revision as of 16:56, 24 January 2019

Summary
[edit]

The Switch DAT is a multi-input operator which lets you choose which input is output by using the Input parameter.

PythonIcon.pngswitchDAT_Class


Parameters - Switch Page

Index index - Selects which input to pass though to the output. The first input is 0.  


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.


Operator Inputs

  • Input 0 -

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