set_ik_solver_bones
Set a solver's start and end bones in a UIKRigDefinition asset by index, recording undo and saving; returns set flags, changed and saved status.
Instructions
Set the start bone and/or end bone of one solver in an IK Rig asset (0-based stack index) through the IK Rig controller, which records each change as an undo transaction, then save the asset. Pass at least one bone, else an error. An out-of-range index, a bone missing from the rig skeleton, or a start or end bone on a solver type without one is not an error: start_bone_set or end_bone_set comes back false, next to the bones read back, and nothing is stored for it. A bone the solver already has is left alone; when nothing changes, changed is false, saved is false, a note says why and nothing is saved. A failed save makes success false, with saved=false and save_error. get_ik_solver_bones reads them.
Returns: { asset_path: string, solver_index: int, start_bone: string, end_bone: string, start_bone_set: bool, end_bone_set: bool, changed: bool, saved: bool, save_error?: string, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_bone | No | Optional end bone name | |
| start_bone | No | Optional start bone name | |
| ik_rig_path | Yes | Path to the UIKRigDefinition asset | |
| solver_index | Yes | 0-based solver index |