set_sequence_duration
Set a Level Sequence's playback range to [0, duration) by asset name under /Game, marking the package dirty without saving. Returns previous and actual duration plus tick-resolution start/end frames.
Instructions
Sets the playback range of a Level Sequence (found by asset name under /Game) to [0, duration) and marks the package dirty without saving; not undoable. Returns previous_duration, actual_duration, duration_set (within 0.01 s), and start_frame and end_frame in tick-resolution frames.
Returns: { sequence_name: string, requested_duration: number, previous_duration: number, actual_duration: number, duration_set: bool, start_frame: int, end_frame: int }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | Yes | New length in seconds, greater than 0 and at most 3600 (0 is refused) | |
| sequence_name | Yes | Asset name of the Level Sequence, not its path (e.g. "LS_Intro"); the first match under /Game is used |