Apply a GLSL shader from the vault
apply_shader_from_vaultApply a shader stored in your Obsidian vault by creating a GLSL TOP in TouchDesigner.
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 |
|---|---|---|---|
| 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. | |
| name | No | Name for the GLSL TOP (defaults to the note's frontmatter `name`, else 'glsl1'). |