cavalry_set_attributes
Update layer properties in Cavalry by setting attribute values such as position, color, rotation, and opacity using a key-value map of attribute paths.
Instructions
Sets one or more attribute values on an existing layer in Cavalry (e.g. 'material.materialColor', 'position.x', 'scale.x', 'rotation.z', 'opacity').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | The unique layer ID (e.g., 'basicShape#1' or returned layer ID). | |
| attributes | Yes | Key-value map of attribute paths and their target values (e.g., {'position.x': 100, 'position.y': 200, 'material.materialColor': '#FF3366', 'rotation.z': 45}). |