Create Shader Park sculpture
create_shader_parkCompile Shader Park JavaScript sculpture code and instantiate it as a TouchDesigner GLSL MAT scene with live controls.
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. Use the companion shader-park:tox script when you specifically want the official Shader Park .tox plugin workflow.
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 |
| uniform_values | No | Initial values for Shader Park `input()` uniforms by name, e.g. `{ "size": 0.55 }`. | |
| speed | No | Animation speed multiplier for the Shader Park `time` uniform. | |
| scale | No | Initial `_scale` uniform value. | |
| opacity | No | Initial opacity uniform value. | |
| step_size | No | Initial Shader Park raymarch stepSize uniform value. | |
| camera_z | No | Camera distance from the sculpture. | |
| resolution | No | Render TOP resolution [width, height]. | |
| expose_controls | No | Expose Speed / Scale / Opacity / StepSize / CameraZ plus any float Shader Park inputs. | |
| parent_path | No | Parent COMP path for the new sculpture. | /project1 |