Logo di Td Dat Family

Td Dat Family

Organizzazione
TouchDesigner
td-dat-family

Operazioni DAT: dati tabellari, callback Python, esecuzione dei parametri, esecuzione di CHOP. Usala quando crei o popoli un DAT.

Panoramica

Pubblicato daTouchDesigner
RepositoryTDMCPSkills
Nome della skilltd-dat-family
Stelle
42
Fork
1
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da TouchDesigner su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Td Dat Family in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Td Dat Family in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Td Dat Family non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Td Dat Family non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA Td Dat Family?

Operazioni DAT: dati tabellari, callback Python, esecuzione dei parametri, esecuzione di CHOP. Usala quando crei o popoli un DAT.

Perché usare Td Dat Family su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Td Dat Family è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Td Dat Family in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Td Dat Family?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Td Dat Family?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Td Dat Family: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Td Dat Family è gratuita?

È pubblicata su GitHub da TouchDesigner. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇