Create primitive shape
cavalry_create_primitiveCreate primitive shape layers like rectangles, ellipses, stars, or polygons and optionally set attributes such as size, position, and color in one call.
Instructions
Create a primitive shape layer (e.g. "rectangle", "ellipse", "star", "polygon") and optionally set attributes in the same call, e.g. {"generator.dimensions": [400, 200], "position": [0, 0], "material.materialColor": "#00c2ff"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name in the Scene Window. | |
| shape | Yes | Primitive type, e.g. "rectangle", "ellipse", "star", "polygon". | |
| attributes | No | Map of attribute path to value, e.g. {"position": [100, 200], "rotation.z": 45, "material.materialColor": "#ff4d00"}. |