Create Shader Park sculpture
create_shader_parkCompile Shader Park JavaScript sculpture code into a self-contained TouchDesigner GLSL MAT scene with live controls for speed, scale, and camera.
Instructions
Compile Shader Park JavaScript sculpture code with shader-park-core and instantiate it as a self-contained TouchDesigner GLSL MAT scene with live controls. Caller source requires TDMCP_RAW_PYTHON=on and TDMCP_BRIDGE_ALLOW_EXEC=1. Use the companion shader-park:tox script when you specifically want the official Shader Park .tox plugin workflow.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_shader_park"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Shader Park sculpture code. Example: `let size = input(); sphere(size);`. The code is compiled with shader-park-core and stored in a Text DAT for editing. | setMaxIterations(96); rotateY(time * 0.25); color(vec3(0.2, 0.8, 1.0)); sphere(0.45); |
| name | No | Name of the created baseCOMP container. | shader_park_sculpture |
| scale | No | Initial `_scale` uniform value. | |
| speed | No | Animation speed multiplier for the Shader Park `time` uniform. | |
| opacity | No | Initial opacity uniform value. | |
| camera_z | No | Camera distance from the sculpture. | |
| step_size | No | Initial Shader Park raymarch stepSize uniform value. | |
| resolution | No | Render TOP resolution [width, height]. | |
| parent_path | No | Parent COMP path for the new sculpture. | /project1 |
| uniform_values | No | Initial values for Shader Park `input()` uniforms by name, e.g. `{ "size": 0.55 }`. | |
| expose_controls | No | Expose Speed / Scale / Opacity / StepSize / CameraZ plus any float Shader Park inputs. |