Td Dat Familyのロゴ

Td Dat Family

組織
TouchDesigner
td-dat-family

DATの操作を扱います。テーブルデータ、Pythonコールバック、Parameter Execute、CHOP Executeが対象です。DATの作成やデータ入力に使ってください。

概要

公開者TouchDesigner
リポジトリTDMCPSkills
スキル名td-dat-family
スター
42
フォーク
1
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    TouchDesignerがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Td Dat Family」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-family
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでTd Dat Familyを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にTd Dat Familyを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Td Dat Familyは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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

よくある質問

AIスキル「Td Dat Family」では何ができますか?

DATの操作を扱います。テーブルデータ、Pythonコールバック、Parameter Execute、CHOP Executeが対象です。DATの作成やデータ入力に使ってください。

TypingMindでTd Dat Familyを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Td Dat Familyはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにTd Dat Familyをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-dat-familyを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Td Dat Familyを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Td Dat Familyで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもTd Dat Familyを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Td Dat Family」は無料ですか?

TouchDesignerがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇