scale_anim_curve
Retime a float curve on a UAnimSequence by scaling each key's time about an origin, leaving values unchanged, then save the package in one undo step.
Instructions
Retime a FLOAT curve on a UAnimSequence through its data controller (one undo step), then save the package: every key TIME becomes (t - origin) * factor + origin, and the key VALUES are left untouched -- this stretches/compresses a curve in time, it does not scale its amplitude. FLOAT-CURVE ONLY: a name that is not a float curve of the sequence, a transform curve included, is an error and nothing is written. A retime that moves no key (factor 1, no keys, or every key at the origin) is a success with applied=false and saved=false, and nothing is written or saved. A failed save makes success false, with saved=false and save_error.
Returns: { anim_sequence_path, curve_name, origin, factor, num_keys, applied, saved, save_error, message }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| factor | No | Scale factor applied to each key TIME (default 1.0). | |
| origin | No | Time origin the key times are scaled about (default 0.0). | |
| curve_name | Yes | Name of the float curve. | |
| anim_sequence_path | Yes | Asset path of the UAnimSequence. |