add_constraint
Apply constraints to objects or bones in Blender to control movement, rotation, and relationships between 3D elements for animation and modeling.
Instructions
Add a constraint to an object or bone.
Args: object_name: Name of the object (armature for bone constraints). bone_name: Name of the bone (empty string for object-level constraints). constraint_type: Constraint type. One of: IK, COPY_ROTATION, COPY_LOCATION, COPY_SCALE, COPY_TRANSFORMS, TRACK_TO, DAMPED_TRACK, LOCKED_TRACK, LIMIT_ROTATION, LIMIT_LOCATION, LIMIT_SCALE, STRETCH_TO, FLOOR, CLAMP_TO, TRANSFORM, MAINTAIN_VOLUME, CHILD_OF, PIVOT, ARMATURE. properties: Optional dict of constraint properties to set (e.g., target, subtarget, chain_count, influence, etc.).
Returns: Dict with the created constraint's name and type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_name | Yes | ||
| bone_name | No | ||
| constraint_type | No | ||
| properties | No |