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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_name": "<object_name>",
"rotation": "<rotation>"
},
"name": "set_rotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | EULER | |
| rotation | Yes | ||
| object_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||