Controlled disorder grid
controlled_disorder_gridGenerate a grid of quads with a single disorder knob: set 0 for a perfect grid, 1 for full chaos. Adjust per-cell position, rotation, and scale jitter together, and preview directly in TouchDesigner.
Instructions
Generate a rows×cols grid of quads (or outlined cells) with a single order↔chaos disorder knob: 0 = a perfect grid, 1 = full chaos. The one knob scales per-cell position, rotation, and scale jitter together — each hashed from the cell index in a single GLSL TOP so the pattern is stable and reproducible (the classic generative-design 'controlled randomness' / Schotter study, no external source). Set outline: true for line cells. Creates a new baseCOMP under parent_path. Exposes the live Disorder knob plus CellColor/Background swatches. Returns a summary plus a JSON block with node paths, 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": "controlled_disorder_grid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | Number of grid columns (left to right). | |
| fill | No | Cell size within its slot (0..1); leaves gutters between cells. | |
| rows | No | Number of grid rows (top to bottom). | |
| outline | No | Draw outlined cells instead of filled quads (classic Schotter look). | |
| disorder | No | The single order↔chaos knob. 0 = a perfect grid; 1 = full chaos. Scales all per-cell position/rotation/scale jitter together. | |
| background | No | Background colour hex. Live RGB swatch 'Background'. | #101014 |
| cell_color | No | Cell / line colour hex (e.g. '#f2f2f2'). Live RGB swatch 'CellColor'. | #f2f2f2 |
| line_width | No | Outline thickness (fraction of a cell); used only when outline=true. | |
| pos_jitter | No | Max per-cell position offset at disorder=1 (fraction of a cell). | |
| resolution | No | Output resolution [width, height] of the GLSL TOP (square suits a grid). | |
| rot_jitter | No | Max per-cell rotation at disorder=1 (radians). | |
| parent_path | No | Parent COMP path the self-contained 'disorder_grid' container is created inside. | /project1 |
| scale_jitter | No | Max per-cell scale variation at disorder=1 (fraction). | |
| expose_controls | No | Expose the live Disorder knob (and CellColor/Background swatches). |