/tdmcp-skills:td-dat-familyfrom TDMCP Skills
Manages TouchDesigner DAT operators: table data, Python callbacks, parameter execute, CHOP execute. Covers setting content, callback wiring, and sync-to-file workflows.
Ships in TDMCP Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Python scripts, callbacks, and table data in TouchDesigner DAT operators.
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 changeschopexecuteDAT — fires callbacks on CHOP value/channel changesdatexecuteDAT — fires callbacks on DAT content changespanelexecuteDAT — fires callbacks on panel events (click, hover, etc.)scriptDAT — programmable DAT with onCook callbackVia 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.
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 pardatexecuteDAT → dat parpanelexecuteDAT → panel parparameterexecuteDAT → op parRoutes 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 = FalseKey callbacks:
def onValueChange(par, prev): # par value changed
def onPulse(par): # pulse par triggered
Fires when CHOP values change. Useful for event-driven responses to data.
chop par = path to the CHOP to monitoronValueChange(channel, sampleIndex, val, prev), onOffToOn(channel, ...)Fires when referenced DAT content changes.
onTableChange(dat), onRowChange(dat, rows), onCellChange(dat, cells, prev)op('table1')['rowName', 'colName'] or op('table1')[rowIndex, colIndex]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'
)
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.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.__init__, so in-memory
extension state is wiped — the one thing to watch.file/pixeldat references are
resolved at creation and are static snapshots — a later rename does NOT follow them.create(textDAT) gives an
empty DAT — see td-python-extension for the skeleton to author.)set_dat_content call (above), then set language to match
the code (it isn't set for you).External files mirror the TD operator hierarchy under code/, relative to the .toe:
code/py/<comp>/<subcomp>/<dat_name>.pycode/glsl/<comp>/<subcomp>/<dat_name>.glslExample: /project1/MyEffect/scripts/helper → code/py/MyEffect/scripts/helper.py
plain, no syntax highlighting or error checkingrun() with delayFrames for deferred work*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 oneWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/td-build-planningPlan TouchDesigner builds — scout networks, decide operators, allocate positions, phase work. Use before any multi-operator build./td-chop-familyBuild CHOP chains for audio, LFOs, animation, and data-driven control. Use when creating CHOPs or driving parameters from CHOPs./td-colabCollaborative mode — you're a thinking partner in TouchDesigner, not a builder. Load when you're sliding into auto-building or need to reset the collaborative frame./td-comp-architectureComponent design — baseCOMPs, extensions, custom parameters, parent shortcuts, modularity. Use when creating COMPs or structuring projects./td-generalCore TouchDesigner conventions and the skill map — workflow phases, naming, paths, tool preferences, universal pitfalls. Load FIRST on any TouchDesigner task, before any other td- skill./td-geometry-instancingGeometry instancing — geometryCOMP instance setup, data sources (CHOP/DAT/TOP/POP), transforms, textures. Use when instancing geometry.npx claudepluginhub touchdesigner/tdmcpskills --plugin tdmcp-skillsOther plugins' skills for the same job