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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| settings | No | ||
| subtarget | No | ||
| object_name | Yes | ||
| target_name | No | ||
| constraint_type | Yes |