Convert DAT Hero

How to Use the Convert DAT to Reshape Tables and Text

The Convert DAT turns plain text into a table and turns a table back into text. That one job is what lets a raw serial line like 512,300,128 drive CHOPs, POPs and visuals in TouchDesigner. The operator has four settings, and nearly every converted table that looks wrong comes from the same few mistakes, all covered below.

ToolTouchDesigner 2025
CostFree Non-Commercial licence
LevelBeginner
Time20 minutes

Sketch notes

  • Set How to To Table to split text into cells, or To Text to join cells into one string.
  • Every character in Split Cells at is its own delimiter, so , splits at commas and at spaces.
  • Turn on Remove Blank Lines for serial, file and web text so trailing newlines don’t become empty rows.
  • DAT to CHOP and DAT to POP need table input, and a Convert DAT set to To Table supplies it.
  • Clean CSV or TSV files can skip the Convert DAT: point a Table DAT at the file.

Fact-checked

We checked these key facts against the sources named, on November 29, 2026:

  • A 430 sits between the old 20 and 21 anchors, and a 450 is above 21 (source: dentistry.umkc.edu)
  • Derivative’s release notes list build 2025.33230 (September 1, 2026) as the current Official build (source: derivative.ca)
  • Scores now run from 200 to 600 in 10-point steps, replacing the old 1 to 30 scale, as ADEA’s applicant FAQ explains (source: adea.org)
  • The ADA also announced updated Organic Chemistry test specifications for April 2026, so anyone testing from May 2026 onward should review the new outline (source: bootcamp.com)
  • For context, the ADA reports that 52.5% of first-time, first-year enrollees in the 2025 entering dental class had an Academic Average of 21 or higher on the old scale, roughly 440 and up (source: medicalaid.org)

Which “DAT convert” do you need?

“DAT convert” covers three different jobs. Most of this page is about TouchDesigner’s Convert DAT. The other two get short, accurate answers further down.

You want to… What it means Short answer
Split text into a table (or join a table into text) in TouchDesigner The Convert DAT operator Set How to To Table or To Text, then set Split Cells at or Concatenate with
Open or convert a mystery .dat file A generic file extension used by many apps Open it in a text editor first. Readable text can go to CSV, unreadable bytes need the app that made it
Translate a Dental Admission Test score The ADA’s 1–30 to 200–600 scale change Use the ADA’s official concordance tables. The values are approximate equivalents

What the Convert DAT does in TouchDesigner

The Convert DAT changes a DAT’s content from simple text into table form, or from a table back into text. Derivative’s current documentation describes exactly two directions: To Table turns regular text into rows and cells, and To Text turns a table into regular text.

It sits between a text source and anything that expects a table. The usual source is a Serial DAT, File In DAT, Web Client DAT or Text DAT. Downstream you’ll usually have a DAT to CHOP, a DAT to POP or a Select DAT. If you’re still getting used to what a DAT is in TouchDesigner, think of it as a container for text or tables that cooks like any other operator.

Everything here is checked against the current 2025 Official line. Derivative’s release notes list build 2025.33230 (September 1, 2026) as the current Official build. Earlier builds in that line include 2025.33070 (July 16, 2026), which added glTF support and the Script POP. The 2025 Official line launched on October 29, 2025 with build 2025.31500, which introduced Point Operators (POPs).

Did you know?

At the time of checking in November 2026, the build selector on Derivative’s own Convert DAT page still showed 2022.24140 as “Latest”, three years behind the 2025 Official builds that added POPs.

Text DAT vs Table DAT: why the difference matters downstream

A Text DAT holds one block of free text. A Table DAT holds a grid of cells addressed by row and column. Many operators accept only one of these. DAT to CHOP needs a table as input, according to its documentation. A comma-separated line in a Text DAT is just characters to it.

The Convert DAT bridges that gap without any Python. It also works the other way. Network protocols and files want a single string, so you can flatten a table into delimited text before sending it out.

To Table vs To Text at a glance

Direction Input Output Main parameter Typical use
To Table Text such as 512,300,128 Table: one row, three cells Split Cells at Sensor data, CSV text, web responses
To Text Table of cells One string per row Concatenate with UDP, TCP, HTTP bodies, File Out

Every Convert DAT parameter, with before/after examples

To Table vs To Text Direction Diagram

The Convert page has four parameters that matter: How, Split Cells at, Remove Blank Lines and Concatenate with. The table below gives each one with its Python name, and the sections after it show real input and output.

Parameter Python name What it does Example input → output Gotcha
How how Picks To Table or To Text a,b → 2 cells (To Table) Wrong direction gives an unchanged-looking DAT
Split Cells at delimiters Characters that end a cell 1;2;3 with ; → 3 cells Each character works alone
Remove Blank Lines removeblank Drops empty lines before splitting 3 lines + blank → 3 rows Off by mistake adds empty rows
Concatenate with spacers String inserted between cells Cells 1, 2, 3 with , → 1,2,3 Only applies to To Text

How (how): To Table / To Text

How sets the direction. Choose To Table when the input is text and you need rows and cells. Choose To Text when the input is a table and you need a string.

Input text in a Text DAT:

red,0.9
green,0.4
blue,0.1

With How set to To Table and Split Cells at set to ,, the result is a two-column table:

col 0 col 1
row 0 red 0.9
row 1 green 0.4
row 2 blue 0.1

Each line becomes a row. Each delimiter ends a cell.

Split Cells at (delimiters): why ‘, ‘ splits at commas AND spaces

Split Cells at takes a list of single characters, and every one of them acts as a separate delimiter. Derivative’s documentation gives the example directly: entering $% splits at $ or %, not only where $% appears together.

That trips people up with CSV text that has a space after each comma. Typing , doesn’t mean “comma followed by space”. It means “split at any comma and at any space”.

Input:

200, 900, 40
Split Cells at Result
, 200 · 900 · 40 (leading spaces kept)
, Splits at both characters, so you risk an empty cell between each comma and space
(space only) 200, · 900, · 40

You can use the same trick on purpose. Entering ,; handles a file that mixes commas and semicolons in one pass. To split on a tab, use the tab character, since tabs are TouchDesigner’s native table separator.

Did you know?

According to Derivative’s Convert DAT documentation, a Substitute DAT can collapse a longer delimiter into a single character before conversion. That’s the official answer to splitting on :: or |.

Remove Blank Lines (removeblank)

Remove Blank Lines stops empty lines from becoming empty rows. Text from serial ports, files and HTTP responses almost always ends with a newline, and sometimes has blank lines in the middle.

Input (note the blank line and the final newline):

512,300,128

1023,512,700

With Remove Blank Lines off, the result can include empty rows. With it on, you get exactly two rows: 512 | 300 | 128 and 1023 | 512 | 700.

Studio tip

Turn on Remove Blank Lines whenever your text comes from a serial port, a file or a web response. Otherwise a trailing newline can leave an empty last row that DAT to CHOP turns into a zero sample, and your visuals flicker to black.

Concatenate with (spacers): building comma, tab or space-separated strings

Concatenate with sets the string inserted between cells when How is To Text. Unlike Split Cells at, it’s a full string, so , really does put a comma and a space between cells.

Input table:

0.25 0.5 0.75
1 0 1
Concatenate with Output text
, 0.25,0.5,0.75 and 1,0,1 on two lines
, 0.25, 0.5, 0.75 and 1, 0, 1
(space) 0.25 0.5 0.75 and 1 0 1

Each row still ends up on its own line. Join rows in Python if the receiver needs everything on one line.

Common page settings worth knowing (Language, Edit/View Extension, Word Wrap)

The Common page matters less here. Language tells TouchDesigner how to treat and highlight the DAT’s text. Edit/View Extension sets the file extension used when you open the DAT in an external editor. Word Wrap only changes how long lines are displayed in the viewer, not the data. Leave them at their defaults unless you’re editing scripts.

Quick steps: convert text to a table

  1. Add a Text DAT and type 512,300,128.
  2. Append a Convert DAT to its output.
  3. Set How to To Table.
  4. Set Split Cells at to ,.
  5. Turn on Remove Blank Lines.
  6. Middle-click the Convert DAT to check its row and column count.

Patch recipes for creative coding

These four recipes cover most real uses of the Convert DAT. Each one shows the chain and the settings to copy.

Serial/Arduino line ‘512,300,128’ → Convert DAT → DAT to CHOP → drive a TOP

Use this when an Arduino prints sensor readings with Serial.println(), for example three potentiometers sent as 512,300,128. The goal is three CHOP channels that color a Constant TOP.

serial1 (Serial DAT) → select1 (Select DAT, last row) → convert1 (Convert DAT)
  → datto1 (DAT to CHOP) → math1 (Math CHOP) → rename1 (Rename CHOP)
  → constant1 (Constant TOP, color from expressions)
  1. Set up the Serial DAT on your Arduino’s port and baud rate, and keep its stored line count low so only recent lines remain.
  2. Use a Select DAT to pass only the newest row. Older lines would otherwise become extra samples.
  3. Set the Convert DAT: How = To Table, Split Cells at = ,, Remove Blank Lines = On.
  4. In the DAT to CHOP, output one channel per column and set First Row to Values, because this data has no header row.
  5. In the Math CHOP, map the range 0 to 1023 (the Arduino’s 10-bit analog range) to 0 to 1.
  6. Rename the channels to r g b with a Rename CHOP.
  7. On the Constant TOP, use expressions such as op('rename1')['r'] for the red, green and blue color parameters.

Test without hardware by swapping the Serial DAT for a Text DAT containing the same line. The same patch can feed a projection mapping rig or any other output, because downstream it’s just CHOP channels. If the channels jump around, the CHOP is following the cook rate, and our article on time slices in TouchDesigner explains why.

Studio tip

Check the Convert DAT’s size with an Info CHOP (channels num_rows and num_cols). A serial line cut off mid-message shows up as num_cols dropping below 3, and you can gate the update before it reaches your visuals.

CSV dataset → table → DAT to POP point cloud (2025 builds)

In 2025 builds, a table can also become geometry. According to its documentation, the DAT to POP creates attributes from table columns, using column headings as attribute names, and each row becomes a point.

filein1 (File In DAT, points.csv) → convert1 (Convert DAT, To Table, ',')
  → dattopop1 (DAT to POP) → render chain or POP operators

Start with a CSV whose first row is a header, such as x,y,z,size. Convert it with Split Cells at set to ,. On the DAT to POP, either let it convert all columns automatically or add a New Attribute entry that takes the x y z columns as the three components of the position attribute. The exact parameter layout has changed between 2025 builds, and build 2025.32820 fixed a crash with some empty DATs. Check the DAT to POP page for your build before you rely on it.

For a clean CSV file, a Table DAT pointed at the file can replace both the File In DAT and the Convert DAT.

Multi-character delimiters (‘::’, ‘ | ‘) with a Substitute DAT first

Since Split Cells at reads single characters, a separator like :: or | needs one extra step. Put a Substitute DAT before the Convert DAT and replace the whole separator with one character.

text1 (id::label::value) → substitute1 (Before: ::  After: ,) → convert1 (Split Cells at: ,)

Input:

7::cyan::0.82
8::magenta::0.31

After substitution the text becomes 7,cyan,0.82, and the Convert DAT returns a clean three-column table. Pick a replacement character that never appears inside your values. A tab is the safest choice for text fields.

Studio tip

For pipe-separated logs written as a | b | c, replace the full | sequence, spaces included, with a tab in the Substitute DAT. Splitting on | alone leaves a space at both ends of every cell.

Table → text for Web Client, TCP/UDP or File Out

To send data out, reverse the direction. A CHOP to DAT turns channels into a table, and a Convert DAT set to To Text joins the cells.

math1 (CHOP) → chopto1 (CHOP to DAT) → convert2 (How: To Text, Concatenate with: ,)
  → udpout1 / tcpip1 / fileout1, or read by a Web Client DAT request

Set Concatenate with to , for most APIs and microcontrollers, or to a tab for spreadsheets. From Python you can send the result, for example op('udpout1').send(op('convert2').text). A File Out DAT writes it straight to disk.

Convert DAT vs the alternatives

Split Cells At Parameter Example

Skip the Convert DAT when the source is already a clean table. Every operator you add has to cook, and a Table DAT that reads the file directly saves one.

Source data Best operator Setting Feeds into
Clean .csv, .tsv or TouchDesigner .dat file Table DAT File parameter pointed at the file DAT to CHOP, DAT to POP
Tab-separated text file File In DAT Convert Text to Table on Any table consumer
Comma, semicolon or mixed text from a stream Convert DAT To Table, Split Cells at DAT to CHOP, Select DAT
Multi-character separators Substitute DAT + Convert DAT Replace, then split on one character DAT to CHOP, DAT to POP
Rows built in code Table DAT + Python appendRow([...]) Anything
Rows and columns the wrong way round Transpose DAT No settings needed DAT to CHOP
Table to string for output Convert DAT To Text, Concatenate with UDP Out, TCP/IP, File Out

Derivative’s Table DAT documentation confirms it loads comma-separated (.csv), tab-separated (.tsv) and TouchDesigner .dat files. The File In DAT’s Convert Text to Table option treats tabs as column separators, so it only fits tab-delimited data. The Convert DAT is the right tool when you need a non-tab delimiter, when text arrives live, or when you need to go from table back to text.

The counter-argument is control. A Convert DAT in the network is visible, easy to inspect and easy to switch at runtime. A Table DAT reading a file hides the parsing. For a live installation that will be packaged as a component, a visible chain is easier for the next person to debug. Our guide to what a .tox file is covers saving that chain as a reusable component.

Controlling and monitoring the Convert DAT with Python

The Convert DAT is a convertDAT object in Python, and its parameters use the Python names from the table above. You can switch direction and delimiters at runtime, then read cells like any DAT.

c = op('convert1')


c.par.how = 'table'          # 'table' = To Table, 'text' = To Text
c.par.delimiters = ','       # each character here is its own delimiter
c.par.removeblank = True


print(c.numRows, c.numCols)  # table size
print(c[0, 1].val)           # cell at row 0, column 1 as a string

# Build rows in a Table DAT directly instead
t = op('table1')
t.appendRow(['512', '300', '128'])
print(t[0, 2])

For monitoring without code, add an Info CHOP and point it at the Convert DAT. Derivative lists num_rows and num_cols among its channels, along with common operator channels such as cook_time (in milliseconds) and total_cooks. A Logic CHOP on num_cols can flag malformed input, and cook_time tells you whether a large file is slowing the network.

When CSV fields contain quoted commas, like "Smith, J",42, no delimiter setting will save you. Parse the text with Python’s csv module inside a Script DAT instead:

# Script DAT callback: parses quoted CSV from text1 into this table
import csv, io def onCook(scriptOp):
    scriptOp.clear()
    for row in csv.reader(io.StringIO(op('text1').text)):
        scriptOp.appendRow(row)
    return

Troubleshooting: why your converted table looks wrong

Most broken tables trace back to delimiters, blank lines or headers. Find your symptom below.

Symptom Likely cause Fix
Extra empty rows, often at the end Trailing newline or blank lines in the source Turn on Remove Blank Lines
Empty cells between values Delimiter set to , or similar, so the space splits too Use , alone, then strip spaces
Values split in the wrong places A delimiter character also appears inside values Substitute DAT to a safe single character, such as a tab
Names like "Smith and J" Quoted CSV fields with commas inside Parse with Python’s csv module in a Script DAT
Everything in one column Wrong delimiter, or How still set to To Text Check How, then match Split Cells at to the real separator
DAT to CHOP reads the header as data, or drops the first sample First Row setting doesn’t match the data First Row = Names with a header, Values without one
Numbers like 300 fail to match or compare Leading or trailing whitespace kept in cells Avoid spaces at the source, or clean them in Python with .strip()
DAT to CHOP says the input must be a table Text DAT wired straight into it Insert a Convert DAT set to To Table
Channels flicker to zero Partial serial lines or a blank last row Remove Blank Lines plus an Info CHOP check on num_cols

Converting a .dat file outside TouchDesigner

A .dat file is just “data” in a generic sense. Dozens of programs use the extension for unrelated formats, so the first job is finding out what’s inside.

Is it text or binary?

Open the file in a plain text editor such as Notepad, TextEdit or VS Code. If you see readable rows of numbers or words, it’s text, and you can convert it to CSV. If you see scrambled symbols, it’s binary and only the program that made it can read it properly.

A quick Python check works too:

with open('mystery.dat', 'rb') as f:
    chunk = f.read(4096)
print('binary' if b'\x00' in chunk else 'probably text')
Type of .dat How to recognize it Free way to convert/open
Text table (space, tab or pipe separated) Readable rows and columns pandas or a spreadsheet’s text import
TouchDesigner DAT export Readable, tab-separated Table DAT in TouchDesigner
winmail.dat email attachment Arrives attached to an Outlook email Thunderbird with LookOut, or ask the sender to resend
GIS grid (ZMap Plus Grid) Text header, then grid values QGIS, which reads it through GDAL
Game or app data Binary bytes, often tied to one program The program that created it

Whitespace or pipe-delimited .dat → CSV in Python

pandas handles a whitespace-separated .dat with the regular expression sep=r'\s+'. This also answers a common question: Excel can open text that isn’t comma-separated once you convert it to CSV or use its text import.

import pandas as pd

# Read: any run of spaces or tabs separates columns
df = pd.read_csv('readings.dat', sep=r'\s+', header=None)

# Pipe-delimited instead: pd.read_csv('readings.dat', sep='|')

# Write: CSV for Excel, or tab-separated if you prefer
df.to_csv('readings.csv', index=False)
df.to_csv('readings_tab.dat', sep='\t', index=False, header=False)

You can’t write with sep=r'\s+'. to_csv needs a single-character separator, so write with ' ' or '\t'.

winmail.dat from Outlook

A winmail.dat attachment is usually the real attachment, wrapped in Microsoft’s TNEF format by an Outlook or Exchange setup that sends rich text. Your email client can’t unwrap it, so you see one mystery file instead of the PDF or image the sender meant to share.

The simplest fix is to ask the sender to resend in HTML or plain-text format. On desktop, Mozilla Thunderbird’s LookOut add-on decodes TNEF and shows the attachments inside. Reviews on the add-on site report mixed compatibility across Thunderbird versions, so check its current reviews first. Mac users have free TNEF decoders available too. Converting winmail.dat “to PDF” with Adobe Acrobat doesn’t help: the content has to be decoded, not reformatted.

App, game and GIS .dat files

Binary .dat files from games and apps store settings, saves or assets in a private layout. Renaming them or “converting” them to PDF won’t make them readable. GIS .dat files in the ZMap Plus Grid format are text-based grids and open in QGIS for free. Paid converter apps mostly wrap the same libraries.

DAT test score conversion: the quick, accurate version

The Dental Admission Test switched scales for tests taken on or after March 1, 2025. Scores now run from 200 to 600 in 10-point steps, replacing the old 1 to 30 scale, as ADEA’s applicant FAQ explains.

The American Dental Association published two concordance tables, old-to-new and new-to-old, on its DAT scores page. The ADA calls the values approximately equivalent scores, not exact translations. Each section has its own column because each section has its own score distribution. Don’t multiply or interpolate.

Academic Average (old scale) Approximate new-scale equivalent Source
17 370 Kaplan, from the ADA concordance
20 420 Kaplan, from the ADA concordance
21 about 440 ADA

So a 420 Academic Average lines up with an old 20. A 430 sits between the old 20 and 21 anchors, and a 450 is above 21. Look up both in the ADA’s new-to-old table rather than guessing. For context, the ADA reports that 52.5% of first-time, first-year enrollees in the 2025 entering dental class had an Academic Average of 21 or higher on the old scale, roughly 440 and up. The ADA also announced updated Organic Chemistry test specifications for April 2026, so anyone testing from May 2026 onward should review the new outline.

FAQ

What does the Convert DAT do in TouchDesigner?

It converts a DAT between plain text and table form in either direction. To Table splits text into rows and cells using your delimiter characters. To Text joins table cells into lines using the Concatenate with string.

How do I convert text to a table in TouchDesigner?

Append a Convert DAT to your text source, set How to To Table, and enter your separator in Split Cells at. Turn on Remove Blank Lines to avoid empty rows. For tab-separated files, the File In DAT’s Convert Text to Table option does it in one operator.

How do I split a DAT by a comma or a multi-character delimiter?

For a comma, enter , in Split Cells at. For ::, | or any longer separator, put a Substitute DAT first to replace it with one character, then split on that character. Each character you enter is a separate delimiter.

Why does my Convert DAT create empty rows?

Blank lines and trailing newlines in the source become rows. Turn on Remove Blank Lines. If empty cells appear inside rows instead, your Split Cells at probably includes a space alongside the comma.

How do I get CSV data into a CHOP in TouchDesigner?

DAT to CHOP needs a table, not text. Load the file into a Table DAT, or run the text through a Convert DAT set to To Table. Then set the DAT to CHOP’s First Row to Names if the CSV has a header row.

How do I convert a table DAT back to text?

Use a Convert DAT with How set to To Text and Concatenate with set to ,, a tab or a space. The output is one line per row, ready for UDP Out, TCP/IP, File Out or a web request.

How do I convert a .dat file to CSV or Excel?

If it opens as readable text, read it with pandas (sep=r'\s+' for whitespace) and save it with to_csv. You can also use Excel’s text import and choose the delimiter. Binary .dat files need the program that created them.

How do I open a winmail.dat file?

Ask the sender to resend in HTML or plain-text format, or use Mozilla Thunderbird with the LookOut add-on to decode the TNEF wrapper. Mac users can use a free TNEF decoder app.

Can I convert a .dat file to PDF?

Only if it’s readable text, and even then a PDF is rarely useful for data. For tables, convert to CSV. For winmail.dat, decode it first, and the original attachment is often already a PDF.

What is 420 on the DAT in the old score?

On the Academic Average, 420 corresponds to about 20 on the old 1–30 scale. Treat it as an approximate equivalent and confirm it in the ADA’s new-to-old concordance table.

Try it live

This sketch rebuilds the Convert DAT’s split logic in p5.js so you can see each setting’s effect. Click the canvas to cycle through three settings. Watch how , adds empty cells that shift the colours, and how turning off Remove Blank Lines adds empty rows.

// A mini "Convert DAT" in p5.js: text goes in, a table comes out,
// and each row drives a colour swatch (like DAT to CHOP feeding a TOP).
// Click the canvas to cycle through three Convert DAT settings.

// Sensor-style text with a blank line and a trailing newline.
const RAW = "512,300,128\n\n200, 900,40\n1023,512,700\n";

// Each preset mirrors Split Cells at and Remove Blank Lines.
const PRESETS = [
  { label: "Split Cells at ','   Remove Blank Lines: On", delims: ",", dropBlank: true },
  { label: "Split Cells at ', '  Remove Blank Lines: On", delims: ", ", dropBlank: true },
  { label: "Split Cells at ','   Remove Blank Lines: Off", delims: ",", dropBlank: false }
];
let current = 0;

function setup() {
  createCanvas(800, 500);
  textFont("monospace");
}

// Every character in delims is its own separator, like the Convert DAT.
function toTable(txt, delims, dropBlank) {
  const rows = [];
  for (const line of txt.split("\n")) {
    if (dropBlank && line.trim() === "") continue;
    const row = [];
    let cell = "";
    for (const c of line) {
      if (delims.includes(c)) {
        row.push(cell);
        cell = "";
      } else {
        cell += c;
      }
    }
    row.push(cell);
    rows.push(row);
  }
  return rows;
}

// Widest row in the table
function maxCols(table) {
  let m = 0;
  for (const row of table) m = max(m, row.length);
  return m;
}

function draw() {
  background(18);
  const preset = PRESETS[current];
  const table = toTable(RAW, preset.delims, preset.dropBlank);

  // Settings and table size, like an Info CHOP readout
  noStroke();
  fill(230);
  textSize(14);
  text(preset.label + "   (click to change)", 20, 30);
  text("num_rows: " + table.length + "   num_cols: " + maxCols(table), 20, 52);

  // Draw the table as a grid; empty cells are tinted red
  const cellW = 80, cellH = 30, x0 = 20, y0 = 90;
  textSize(13);
  for (let r = 0; r < table.length; r++) {
    for (let c = 0; c < table[r].length; c++) {
      const v = table[r][c];
      stroke(80);
      fill(v === "" ? color(110, 35, 35) : 35);
      rect(x0 + c * cellW, y0 + r * cellH, cellW, cellH);
      noStroke();
      fill(230);
      text(v === "" ? "(empty)" : v, x0 + c * cellW + 6, y0 + r * cellH + 20);
    }
  }

  // Columns 0, 1, 2 become red, green, blue (Arduino range 0 to 1023)
  const sx = 560, size = 60;
  fill(230);
  text("Row colours (cols 0-2 as RGB)", sx, y0 - 12);
  for (let r = 0; r < table.length; r++) {
    const row = table[r];
    const red = map(Number(row[0]) || 0, 0, 1023, 0, 255);
    const green = map(Number(row[1]) || 0, 0, 1023, 0, 255);
    const blue = map(Number(row[2]) || 0, 0, 1023, 0, 255);
    stroke(80);
    fill(red, green, blue);
    rect(sx, y0 + r * (size + 10), size, size);
    noStroke();
    fill(200);
    text("row " + r, sx + size + 12, y0 + r * (size + 10) + 35);
  }
}

function mousePressed() {
  current = (current + 1) % PRESETS.length;
}

To move this into TouchDesigner, paste the same raw text into a Text DAT and wire it into a Convert DAT and then a DAT to CHOP. Try each setting from the sketch, and keep an Info CHOP on the Convert DAT so you can watch num_cols change.

On this article

By Demos Lab Editorial Team

  • Facts were checked against the sources below before publication.
  • Published
Sources (8)
  1. Convert DAT - TouchDesigner Documentation (derivative.ca)
  2. DAT to CHOP - TouchDesigner Documentation (docs.derivative.ca)
  3. Table DAT - TouchDesigner Documentation (docs.derivative.ca)
  4. File In DAT - TouchDesigner Documentation (derivative.ca)
  5. Working with DATs in Python (derivative.ca)
  6. DAT to POP - TouchDesigner Documentation (docs.derivative.ca)
  7. TouchDesigner Release Notes (derivative.ca)
  8. What's New in the 2025 TouchDesigner Release (interactiveimmersive.io)

Written by Demos Lab Editorial Team

Guides, tutorials and sketches from the Demos Lab team.

All posts