set_retargeter_chain_mapping
Maps a source retarget chain to drive a target chain in an IK Retargeter asset, overwriting previous mappings for listed ops or one op, then saves in one undo transaction.
Instructions
Make source_chain drive target_chain in an IK Retargeter asset, overwriting the previous mapping, on every op whose chain mapping lists target_chain (or only the op named op_name), in one undo transaction, then save the asset. source_chain is not validated, so a misspelled name is stored as given. set_ok is false when no op lists target_chain; mapped_source is read back from the first matching op. When no op lists target_chain, or every one already maps it to source_chain, 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_retargeter_info shows the per-op mappings.
Returns: { asset_path: string, source_chain: string, target_chain: string, mapped_source: string, set_ok: bool, changed: bool, saved: bool, save_error?: string, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op_name | No | Optional op name as get_ik_retargeter_info lists it; omitted, every op whose chain mapping lists target_chain is updated | |
| source_chain | Yes | Name of the source retarget chain | |
| target_chain | Yes | Name of the target retarget chain to map to | |
| ik_retargeter_path | Yes | Path to the UIKRetargeter asset |