Logo: Td Dat Family

Td Dat Family

Organisatioun
TouchDesigner
td-dat-family

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

Iwwersiicht

EditeurTouchDesigner
RepositoryTDMCPSkills
Skill-Nummtd-dat-family
Stären
42
Forks
1
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    TouchDesigner huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Td Dat Family an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Td Dat Family an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Td Dat Family automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Td Dat Family net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Heefeg gestallte Froen

Wat mécht de KI-Skill Td Dat Family?

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

Firwat Td Dat Family op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Td Dat Family besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Td Dat Family an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Td Dat Family benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Td Dat Family benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Td Dat Family domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Td Dat Family gratis?

TouchDesigner huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇