batchTransform
Apply position, rotation, and scale transformations to multiple 3D objects simultaneously using absolute or relative values in a defined coordinate system. Simplify complex transformations in 3D workflows.
Instructions
Apply transformations to multiple objects
Input Schema
Name | Required | Description | Default |
---|---|---|---|
items | Yes | Transformations to apply |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"items": {
"description": "Transformations to apply",
"items": {
"additionalProperties": false,
"properties": {
"id": {
"description": "Object identifier",
"type": "string"
},
"position": {
"description": "New absolute position [x, y, z]",
"items": {
"type": "number"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
},
"positionOffset": {
"$ref": "#/properties/items/items/properties/position",
"description": "Relative position offset to apply [dx, dy, dz]"
},
"rotation": {
"description": "New absolute rotation quaternion [x, y, z, w]",
"items": {
"type": "number"
},
"maxItems": 4,
"minItems": 4,
"type": "array"
},
"rotationOffset": {
"$ref": "#/properties/items/items/properties/rotation",
"description": "Relative rotation to apply as quaternion [x, y, z, w]"
},
"scale": {
"$ref": "#/properties/items/items/properties/position",
"description": "New absolute scale [x, y, z]"
},
"scaleOffset": {
"$ref": "#/properties/items/items/properties/position",
"description": "Relative scale to apply [sx, sy, sz]"
},
"space": {
"default": "world",
"description": "Coordinate space for the transformation",
"enum": [
"local",
"world",
"parent"
],
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
}