set_rotation
Set an object's rotation in Blender using Euler angles in radians or quaternion WXYZ values, with Euler mode as the default.
Instructions
Set the rotation of an object.
Args: object_name: Name of the object. rotation: Rotation values. For EULER mode, XYZ angles in radians (3 elements). For QUATERNION mode, WXYZ values (4 elements). mode: Rotation mode, either EULER or QUATERNION. Defaults to EULER.
Returns: Dict with the object name and new rotation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | EULER | |
| rotation | Yes | ||
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||