Apply a GLSL shader from the vault
apply_shader_from_vaultReads a shader note from your Obsidian vault and creates a GLSL TOP in TouchDesigner, turning stored shader code into a live node.
Instructions
READ a shader note from the Obsidian vault (a glsl fragment block, optional glslvert vertex block, and optional uniforms/resolution/name frontmatter) and CREATE a GLSL TOP in TouchDesigner from it. Side effect is node creation in TD, not file writes. Use this to apply a shader you keep in the vault; to supply shader code inline instead, use create_glsl_shader. Returns the created GLSL TOP (same result as create_glsl_shader). Requires a configured TDMCP_VAULT_PATH.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"note": "<note>",
"parent_path": "<parent_path>"
},
"name": "apply_shader_from_vault"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the GLSL TOP (defaults to the note's frontmatter `name`, else 'glsl1'). | |
| note | Yes | Shader note: a vault-relative path, or a name resolved against the Shaders/ folder. | |
| parent_path | Yes | Parent COMP to create the GLSL TOP inside. |