add_object_constraint
Apply object constraints in Blender, such as copy location, rotation, limit, or track-to. Define target, sub-target, and custom settings to control object behavior.
Instructions
Add a constraint to an object.
Common types: COPY_LOCATION, COPY_ROTATION, COPY_SCALE, TRACK_TO, FOLLOW_PATH, CHILD_OF, LIMIT_LOCATION, LIMIT_ROTATION, LIMIT_SCALE, TRANSFORM, CLAMP_TO, DAMPED_TRACK_TO, IK, PUSH_PULL,Stretch To.
Args: object_name: Target object. constraint_type: Constraint type (e.g. 'COPY_LOCATION'). name: Custom name for the constraint. target_name: Target object for the constraint. subtarget: Sub-target (bone name for armature targets). settings: Dict of constraint properties to set.
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_object_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| settings | No | ||
| subtarget | No | ||
| object_name | Yes | ||
| target_name | No | ||
| constraint_type | Yes |