set_anim_curve_keys
Replace every key of an existing float curve on a UAnimSequence with [time, value] pairs as linear keys, then save the package and return the key count.
Instructions
Replace every key of an existing float curve on a UAnimSequence with the given [time, value] pairs as linear keys with auto tangents, through its data controller in an undo transaction, then save the package; num_keys is read back. The curve must exist (add_anim_float_curve first) and keys needs at least one valid pair. A transform curve is refused, since its keys are transforms, not [time, value] pairs: rekey it with add_anim_transform_curve. Any other curve_type is an error, and so is a rekey the data controller rejects, with nothing saved. A curve that already holds exactly those keys is a success with applied=false, saved=false and a note, and nothing is written or saved. A failed save makes success false, with saved=false and save_error.
Returns: { anim_sequence_path, curve_name, curve_type, num_keys, applied, saved, save_error, note? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | JSON array of [time, value] pairs, time in seconds, at least one; entries that are not such a pair are skipped, and tangents or interpolation cannot be given. | |
| curve_name | Yes | Name of the float curve (e.g. "MyCurve") | |
| curve_type | No | Curve type to target: float (default) or transform; transform is refused with an error pointing at add_anim_transform_curve. | |
| anim_sequence_path | Yes | Full asset path to the UAnimSequence |