add_constraint
Apply a constraint to a Blender object to control its position, rotation, tracking, or parenting behavior with optional targets and parameters.
Instructions
Add a constraint to an object.
Parameters:
object_name: Name of the object
constraint_type: Blender constraint type (e.g. TRACK_TO, COPY_LOCATION, CHILD_OF, LIMIT_ROTATION)
name: Optional name for the constraint
target: Optional target object name
params: Optional JSON string of constraint parameters
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>",
"constraint_type": "<constraint_type>"
},
"name": "add_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| params | No | ||
| target | No | ||
| object_name | Yes | ||
| constraint_type | Yes |