Td Dat Family logo

Td Dat Family

Organization
TouchDesigner
td-dat-family

DAT operations — table data, Python callbacks, parameter execute, CHOP execute. Use when creating or populating any DAT.

Overview

PublisherTouchDesigner
RepositoryTDMCPSkills
Skill nametd-dat-family
Stars
42
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by TouchDesigner on GitHub. Read the source before you install it.

Installation

Install the Td Dat Family AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TouchDesigner/TDMCPSkills.git /tmp/TDMCPSkills
mkdir -p .claude/skills
cp -r /tmp/TDMCPSkills/skills/td-dat-family .claude/skills/td-dat-family
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Td Dat Family in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Td Dat Family on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Td Dat Family is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

DAT Scripts

Python scripts, callbacks, and table data in TouchDesigner DAT operators.

DAT Types

  • textDAT — text content: Python scripts, GLSL code, JSON, plain text. Set language parameter to match content (python, glsl, etc.)
  • tableDAT — row/column table data (cells)
  • parameterexecuteDAT — fires callbacks on parameter changes
  • chopexecuteDAT — fires callbacks on CHOP value/channel changes
  • datexecuteDAT — fires callbacks on DAT content changes
  • panelexecuteDAT — fires callbacks on panel events (click, hover, etc.)
  • scriptDAT — programmable DAT with onCook callback

Setting DAT Content

Via MCP: set_dat_content(path, text=...) for text, set_dat_content(path, rows=[[...]]) for table data (array of row arrays).

Always set language parameter on textDATs — defaults to plain which loses syntax highlighting and error checking.

Callback DATs

Each callback DAT has a dedicated source-reference par that must be set. Without it, the DAT fires no callbacks and raises no error — silently inert. fromop is not the source; it's just where op() expressions evaluate.

  • chopexecuteDAT → chop par
  • datexecuteDAT → dat par
  • panelexecuteDAT → panel par
  • parameterexecuteDAT → op par

parameterexecuteDAT

Routes parameter changes to handlers. Standard setup:

  • op par = .. (parent COMP)
  • pars = * (all custom pars) — a glob pattern, not a list. Empty pars watches nothing (silently inert)
  • builtin = False
  • Fires NEXT cook — a pulse handled here is observable the following tick; same-tick reads of the result miss it

Key callbacks:

python
def onValueChange(par, prev):  # par value changed
def onPulse(par):              # pulse par triggered

chopexecuteDAT

Fires when CHOP values change. Useful for event-driven responses to data.

  • chop par = path to the CHOP to monitor
  • Key callbacks: onValueChange(channel, sampleIndex, val, prev), onOffToOn(channel, ...)

datexecuteDAT

Fires when referenced DAT content changes.

  • Key callbacks: onTableChange(dat), onRowChange(dat, rows), onCellChange(dat, cells, prev)

Table DATs

  • Access cells: op('table1')['rowName', 'colName'] or op('table1')[rowIndex, colIndex]
  • First row is typically headers
  • Use TSV format when populating via MCP

Sync to File

Any DAT containing code (Python, GLSL) should live on disk, not embedded in the .toe. This enables version control and external editing — and it's the fastest way to author: write in your editor, TD live-reloads. This is the agent's strong zone (text on disk), so route code here rather than editing inside the DAT.

Do it in one call. set_dat_content(path, file_content, file_path, file_type) writes the file, sets file + syncfile=true, and creates missing folders — atomically. Don't set file/syncfile by hand; that's the slow path.

set_dat_content(
  path="/project1/MyEffect/glsl_raymarch_pixel",
  file_content="<source>",
  file_path="code/glsl/MyEffect/glsl_raymarch_pixel.glsl",
  file_type="glsl",   # 'glsl' | 'py' | 'dat'
)
  • Set language yourself — set_dat_content does NOT. A code DAT you create with create(textDAT) defaults to language=input and renders as plain text: no syntax highlighting, and TD won't parse it as code. Set language to match the content (python, glsl, json, yaml, xml, …) right after syncing. (Auto-docked DATs — glsl *_pixel, *_callbacks — already have it set by their parent op; hand-created ones don't.) The sibling extension par ("Edit/View Extension") sets the external-editor file type; leaving it at languageext derives it from language, so usually only language needs setting.
  • Always pass an explicit file_path. Omit it and the server auto-derives the path from the live op path — convenient until a rename/move silently forks to a new file and orphans the old one.
  • After the first sync, edit on disk. TD live-reloads with no MCP touch: GLSL recompiles, Python extensions auto-re-init. Re-init runs __init__, so in-memory extension state is wiped — the one thing to watch.

Standard flow

  1. Create the op with its final name. Docked DATs and file/pixeldat references are resolved at creation and are static snapshots — a later rename does NOT follow them.
  2. Harvest the boilerplate. glslTOP/glslmultiTOP auto-dock a DAT with known-good starter code — sync that instead of authoring from scratch. (baseCOMP extensions have no auto-dock: the Component Editor harvests TD's template, but bare create(textDAT) gives an empty DAT — see td-python-extension for the skeleton to author.)
  3. Sync to disk — one set_dat_content call (above), then set language to match the code (it isn't set for you).
  4. Edit on disk — your editor is now the source of truth; TD syncs along.

File Path Convention

External files mirror the TD operator hierarchy under code/, relative to the .toe:

  • Python: code/py/<comp>/<subcomp>/<dat_name>.py
  • GLSL: code/glsl/<comp>/<subcomp>/<dat_name>.glsl

Example: /project1/MyEffect/scripts/helper → code/py/MyEffect/scripts/helper.py

Pitfalls

  • Language not set — textDAT defaults to plain, no syntax highlighting or error checking
  • Using textDAT for tables — use tableDAT for row/column data
  • chopexec without selective cooking — can fire excessively, use with quantized/selective nullCHOP upstream
  • Blocking Python in callbacks — callbacks run on main thread, no HTTP/heavy compute. Use run() with delayFrames for deferred work
  • Missing callback DAT — extensions won't react to parameter changes without parameterexecuteDAT
  • Silently-inert execute DAT — *executeDAT with active=true and triggers enabled but the source par empty (chop/dat/op/panel) fires nothing and raises no error. Always set the source par when creating one

Frequently asked questions

What does the Td Dat Family AI skill do?

DAT operations — table data, Python callbacks, parameter execute, CHOP execute. Use when creating or populating any DAT.

Why use Td Dat Family on TypingMind?

Because you install it once and use it with any model. Td Dat Family is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Td Dat Family in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Td Dat Family?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Td Dat Family?

As many as you like. As long as a model supports skills, you can use Td Dat Family with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Td Dat Family AI skill free?

It is published on GitHub by TouchDesigner. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇