connect_ik_goal_to_solver
Attach an existing IK Rig goal to a solver, generate its per-goal effector settings, and save the asset in one undo step. Required before get/set IK goal settings work; reconnects safely.
Instructions
Connect an existing IK Rig goal to a solver, creating that solver's per-goal effector/settings, in one undo transaction, then save the asset. This is the step that makes get_/set_ik_goal_settings work: a goal added via add_ik_goal is not attached to any solver until connected. Idempotent: re-connecting an already-connected goal is a success with already_connected:true, saved:false and a note, and nothing is saved, avoiding the duplicate the raw engine call would create. An unknown goal or out-of-range solver_index is an error. A failed save makes success false, with saved=false and save_error.
Returns: { ik_rig_path: string, goal_name: string, solver_index: int, connected: bool, already_connected: bool, saved: bool, save_error?: string, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal_name | Yes | Name of an existing goal (created via add_ik_goal). | |
| ik_rig_path | Yes | Content path to the IK Rig asset. | |
| solver_index | Yes | Index of the solver in the rig's solver stack. |