create_level_sequence
Create and save a Level Sequence asset with a set duration and frame rate, or overwrite an existing one while migrating keys to the new rate.
Instructions
Creates a Level Sequence asset at package_path/sequence_name and saves it, with playback range [0, duration) and frame_rate, truncated to whole fps, as both tick resolution and display rate; the end frame is duration times that whole rate, to the nearest frame. If that asset already exists it is loaded and those settings are overwritten, its keys, sections and ranges migrated to the new rate so nothing moves in time; sequence_created tells a new asset from an existing one. Not undoable; another asset class at the path, or a duration shorter than one frame, is an error. To retime an existing sequence use set_sequence_frame_rate or set_sequence_duration; list sequences with get_level_sequences.
Returns: { sequence_name: string, package_path: string, duration: number, frame_rate: number, sequence_created: bool (false when the asset already existed), saved: bool, asset_path: string, playback_range_set: bool, tick_rate_set: bool, actual_start_frame: int, actual_end_frame: int }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Playback duration in seconds, above 0 and at most 3600, default 10 | |
| frame_rate | No | Frame rate in fps, at least 1 and at most 120, truncated to whole fps, default 30 | |
| package_path | No | Target content path, defaults to /Game/Sequences | |
| sequence_name | Yes | Name of the new sequence to create |