Apply a GLSL shader from the vault
apply_shader_from_vaultReads a shader note from an Obsidian vault and creates a GLSL TOP in TouchDesigner to apply that shader. Use this to apply shaders you keep in your vault.
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.
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. |