array_layer
Duplicate a layer into linear, grid, radial, or path patterns using custom spacing, counts, angles, and copy or instance modes for animation layout.
Instructions
Lay out copies of a layer in a pattern: "linear" (row/column via moveX/moveY), "grid" (columns×rows), "radial" (count around a circle: radius + angles), or "path" (distribute along a path layer). count includes the source. cloneMode copy|instance.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layerId": "<layerId>",
"pattern": "<pattern>"
},
"name": "array_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Grid: row count | |
| count | No | Total objects incl. source (linear/radial/path) | |
| moveX | No | Linear: x step per copy | |
| moveY | No | Linear: y step per copy | |
| closed | No | Radial: distribute evenly around full circle | |
| radius | No | Radial: ring radius | |
| scaleX | No | Linear: scaleX step (multiplicative) | |
| scaleY | No | Linear: scaleY step | |
| centerX | No | Radial: center x | |
| centerY | No | Radial: center y | |
| columns | No | Grid: column count | |
| layerId | Yes | Source layer id | |
| pattern | Yes | Array layout | |
| reverse | No | Path: distribute in reverse | |
| rowMoveX | No | Grid: x step between rows | |
| rowMoveY | No | Grid: y step between rows | |
| cloneMode | No | copy or instance | |
| endOffset | No | Path: skip arc-length at end | |
| requestId | No | ||
| sessionId | No | ||
| columnMoveX | No | Grid: x step between columns | |
| columnMoveY | No | Grid: y step between columns | |
| pathLayerId | No | Path: id of the path layer to follow | |
| rotationDeg | No | Linear: rotation step per copy (deg) | |
| startOffset | No | Path: skip arc-length at start | |
| orientToAngle | No | Radial: rotate each to face outward | |
| startAngleDeg | No | Radial: start angle (deg) | |
| totalAngleDeg | No | Radial: total arc span (deg) | |
| alignToTangent | No | Path: rotate to path tangent | |
| expectedRevision | No |