updateConstraints
Modify multiple 3D model constraints simultaneously in 3D-MCP by updating their properties, such as influence, axes, and space, in a single operation.
Instructions
Update multiple Constraints in a single operation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
items | Yes | Array of Constraints to update with their IDs |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"items": {
"description": "Array of Constraints to update with their IDs",
"items": {
"additionalProperties": false,
"properties": {
"active": {
"default": true,
"description": "Whether constraint is active",
"type": "boolean"
},
"customSpaceId": {
"description": "Custom space reference object ID",
"type": "string"
},
"ids": {
"description": "Constraint identifiers to update",
"items": {
"type": "string"
},
"type": "array"
},
"influence": {
"default": 1,
"description": "Constraint influence strength",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"maintainOffset": {
"default": true,
"description": "Whether to maintain initial offset",
"type": "boolean"
},
"metadata": {
"additionalProperties": {},
"description": "Additional tool-specific metadata",
"type": "object"
},
"name": {
"description": "Display name",
"type": "string"
},
"skipRotation": {
"description": "Rotation axes to skip",
"items": {
"enum": [
"x",
"y",
"z"
],
"type": "string"
},
"type": "array"
},
"skipScale": {
"description": "Scale axes to skip",
"items": {
"enum": [
"x",
"y",
"z"
],
"type": "string"
},
"type": "array"
},
"skipTranslation": {
"description": "Translation axes to skip",
"items": {
"enum": [
"x",
"y",
"z"
],
"type": "string"
},
"type": "array"
},
"sourceId": {
"description": "Source object ID (the one that drives)",
"type": "string"
},
"space": {
"default": "world",
"description": "Space in which constraint operates",
"enum": [
"world",
"local",
"custom"
],
"type": "string"
},
"targetId": {
"description": "Target object ID (the one being constrained)",
"type": "string"
},
"type": {
"description": "Constraint type",
"enum": [
"point",
"aim",
"orientation",
"parent",
"pole",
"ik",
"spring",
"path",
"scaleTo",
"lookAt"
],
"type": "string"
}
},
"required": [
"ids"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
}