Logo de Td Dat Family

Td Dat Family

Organização
TouchDesigner
td-dat-family

Operações com DATs — dados em tabelas, callbacks em Python, execução de parâmetros e execução de CHOP. Use ao criar ou preencher qualquer DAT.

Visão geral

Publicado porTouchDesigner
RepositórioTDMCPSkills
Nome da habilidadetd-dat-family
Estrelas
42
Forks
1
Arquivos incluídos
Somente instruções
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por TouchDesigner no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Td Dat Family no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse 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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Td Dat Family em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Td Dat Family automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Td Dat Family não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo 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

Perguntas frequentes

O que a habilidade de IA Td Dat Family faz?

Operações com DATs — dados em tabelas, callbacks em Python, execução de parâmetros e execução de CHOP. Use ao criar ou preencher qualquer DAT.

Por que usar Td Dat Family no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Td Dat Family é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Td Dat Family no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Td Dat Family?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Td Dat Family?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Td Dat Family com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Td Dat Family é gratuita?

A habilidade é publicada no GitHub por TouchDesigner. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇