armature_add_constraint
Add a constraint to a pose bone, supporting types like copy location, rotation, IK, and more. Specify armature, bone, constraint type, and optional target.
Instructions
Add a constraint to a pose bone.
Args: armature_name: Armature containing the bone bone_name: Bone to constrain constraint_type: COPY_LOCATION, COPY_ROTATION, COPY_SCALE, TRACK_TO, DAMPED_TRACK, IK, LIMIT_ROTATION, STRETCH_TO, FLOOR, CHILD_OF target_armature: Target armature object (for bone targets) target_bone: Target bone name params: Additional constraint parameters dict
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| bone_name | Yes | ||
| target_bone | No | ||
| armature_name | Yes | ||
| constraint_type | Yes | ||
| target_armature | No |