Create layer stack (N-layer compositor)
create_layer_stackBuild a VJ-style compositor stacking 2-8 layers with per-layer blend modes, opacity, live controls, and a preview image for TouchDesigner.
Instructions
Build a VJ-style N-layer compositor: stack 2–8 source TOPs and composite them bottom-up, each layer with its own blend mode (over/add/multiply/screen/difference/lighten/darken) and opacity. Each layer is a Select TOP (or a built-in test source when omitted) → a Level TOP carrying opacity; layers above the base each get their own 2-input Composite TOP so blend modes are per-layer. Exposes a live control strip — per layer: Opacity (0–1), Blend (menu), Mute, Solo — and ends on a Null ready for post-processing or setup_output. Pass layers (bottom-first) for an explicit stack, or omit it to build count empty test layers. Returns a summary plus a JSON block with the container path, per-layer node paths, the output Null, exposed controls, node errors, warnings, and an inline preview image.
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_layer_stack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the compositor COMP. | layer_stack |
| count | No | Number of layers when `layers` is omitted. | |
| layers | No | Explicit layer stack (bottom-first). Omit to build `count` empty test layers. | |
| resolution | No | Output resolution [w,h]. | |
| parent_path | No | Where to build it. | /project1 |