Create layer
cavalry_create_layerCreate a layer of any Cavalry type, such as textShape or duplicator, and optionally set attributes like position or rotation in one call.
Instructions
Create a layer of any Cavalry type (e.g. "null", "group", "textShape", "duplicator", "colorMaterial", "javaScript") and optionally set attributes in the same call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name in the Scene Window. | |
| type | Yes | Cavalry layer type id, e.g. "textShape", "duplicator", "null". | |
| attributes | No | Map of attribute path to value, e.g. {"position": [100, 200], "rotation.z": 45, "material.materialColor": "#ff4d00"}. |