set_anim_frame_rate
Set the frame rate of a UAnimSequence's data model, validating that the new rate is a multiple or factor of the current rate and keeps whole frames, then save the asset.
Instructions
Set the frame rate of the data model of a UAnimSequence (IAnimationDataController::SetFrameRate, one undo step) to fps rounded to whole frames per second, then save the package; fps, numerator and denominator are read back from the data model. The data controller only takes a rate that is a multiple or a factor of the current one, and the frame count must stay whole at the new rate: any other rate is an error and nothing changes. The rate the data model already has is a success with changed=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_sequence_info reads the rate.
Returns: { sequence_path, fps, numerator, denominator, changed, saved, save_error, note? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | Yes | New frame rate in frames per second, rounded to a whole number that must be at least 1. | |
| sequence_path | Yes | Asset path of the UAnimSequence. |