add_anim_float_curve
Add or replace a float curve on a UAnimSequence from [time, value] pairs, using linear keys and auto tangents in one undo step, then save the asset.
Instructions
Add a float curve (Editable flag) to a UAnimSequence through its data controller and set its keys from [time, value] pairs as linear keys with auto tangents, in one undo step, then save the package. An existing float curve of that name is kept and its keys are replaced (idempotent); one that already holds exactly those keys is a success with changed=false and saved=false, and nothing is written or saved. curve_found confirms the curve and num_keys counts the keys sent. A missing sequence is an error and a failed save makes success false, with saved=false and save_error. Rekey: set_anim_curve_keys; transform curves: add_anim_transform_curve; a skeleton-only name: add_anim_curve_name; read back: get_anim_curve_data.
Returns: { anim_sequence_path, curve_name, num_float_curves, num_keys, curve_found, changed, success, saved, save_error, message }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | JSON array of [time, value] pairs (default [[0,0],[1,1]]) | |
| curve_name | Yes | Float curve name to add. | |
| anim_sequence_path | Yes | Asset path of the UAnimSequence. |