set_anim_curve_interp_mode
Set a UAnimSequence curve's EAnimAssetCurveFlags to one mode (linear, editable, metadata, drive_track, disabled), then saves the package. No key interpolation or tangents are changed.
Instructions
Replace the curve flags (the EAnimAssetCurveFlags bitmask) of an existing float or transform curve on a UAnimSequence with one flag, in an undo transaction, then save the package. Despite the name it changes no key interpolation or tangents: linear and editable both set Editable; metadata, drive_track and disabled set those flags. interp_mode is required; an unknown mode, curve or sequence is an error, and any curve_type other than transform means float. old_flags and new_flags are the bitmasks before and after; flags the curve already has are 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. get_anim_curve_data reads the flags.
Returns: { anim_sequence_path, curve_name, interp_mode, old_flags, new_flags, applied, saved, save_error, note? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curve_name | Yes | Name of the curve | |
| curve_type | No | Curve type to target: float (default) or transform | |
| interp_mode | Yes | One of "linear|editable|metadata|drive_track|disabled" | |
| anim_sequence_path | Yes | Full asset path to the UAnimSequence |