cavalry_create_primitive
Create a geometric primitive shape in Cavalry—such as an ellipse, rectangle, star, or arrow—by specifying the generator type, layer name, and optional initial attributes for color, scale, and position.
Instructions
Creates a geometric primitive shape in Cavalry (e.g. 'ellipse', 'rectangle', 'star', 'superEllipse', 'polygon', 'ring', 'arrow', 'line') with optional initial attributes like 'material.materialColor', 'scale.x', 'scale.y', 'position.x', 'position.y'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the primitive layer. | |
| generator | Yes | The primitive generator type. | |
| attributes | No | Optional initial attributes (e.g., {'material.materialColor': '#FF3366', 'scale.x': 0.5, 'scale.y': 0.5, 'position.y': 100}). |