set_retargeter_op_settings
Update specific settings for a retargeting operation in a UIKRetargeter asset and optionally enable or disable it, then save as one undo transaction.
Instructions
Partial-merge a retarget op's live settings struct (only the JSON fields present are written -> idempotent), and optionally toggle the op enabled flag, as one undo transaction, then save the asset. Settings keys match get_retargeter_op_info (first char lower-cased, e.g. lODThreshold). Numeric ClampMin/ClampMax metadata is enforced after the merge. The optional enabled flag is applied via the controller. The payload echoes the read-back settings. When neither is given, or the op already has those settings and that enabled state, changed is false, saved is false, a note says why and nothing is saved. An out-of-range op_index is an error. A failed save makes success false, with saved=false and save_error.
Returns: { asset_path: string, op_index: int, op_name: string, op_type: string, enabled: bool, settings: object, changed: bool, saved: bool, save_error?: string, note?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | No | Optional: enable/disable the op (applied via the controller). | |
| op_index | Yes | 0-based index of the op in the retargeter's op stack. | |
| settings | No | Partial settings object; only present fields are written (e.g. { lODThreshold: 5 }). | |
| ik_retargeter_path | Yes | Content path to the UIKRetargeter asset. |