cavalry_create_layer
Add a new layer or procedural node to the active Cavalry scene. Specify the type (basicShape, duplicator, noise) and name, then set optional attributes like position and color.
Instructions
Creates a new layer or procedural node in the active Cavalry scene (e.g. 'basicShape', 'textShape', 'duplicator', 'gridDistribution', 'noise', 'colorArray', 'nullLayer', 'particleEmitter', 'deformer').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the layer in the scene hierarchy. | |
| type | Yes | The Cavalry layer or node type name (e.g., 'basicShape', 'textShape', 'duplicator', 'gridDistribution', 'noise', 'nullLayer', 'colorArray', 'oscillator', 'mathNode'). | |
| attributes | No | Optional initial attributes to set immediately after creation (e.g., {'position.x': 200, 'scale.x': 1.5, 'material.materialColor': '#FF3366'}). |