ap_object_set_transform
Set an object's position, rotation, or scale in ArmorPaint, rebuilding its transform matrix. Accepts XYZ Euler rotation in degrees; omitted components remain unchanged.
Instructions
Set an object's location, rotation and/or scale, then rebuild its matrix. Rotation is given as XYZ Euler angles in DEGREES and converted to the quaternion the engine wants. Omitted components are left alone. ArmorPaint's world is Z-up.
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": {
"name": "<name>"
},
"name": "ap_object_set_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Object name. | |
| scale | No | Scale [x, y, z]. | |
| location | No | World location [x, y, z]. | |
| rotation_euler_degrees | No | XYZ Euler rotation in degrees. |