Timeline¶
68 tools for Level Sequences (Sequencer): bindings, tracks, sections, keyframes, camera cuts, shots and folders, playing a sequence in PIE, and timeline components.
Back to the index.
add_attach_track¶
Additive Idempotent
Add a Sequencer 3D-Attach track on a binding so it follows another binding (e.g. a prop attached to a character's hand socket) over the section's range. The attachee binding owns a UMovieScene3DAttachTrack; AddConstraint creates an attach section pointing at the target binding. Idempotent by (target_binding_guid, start_frame). Inverse: remove_sequence_track with binding_guid.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
binding_guid |
string | yes | GUID of the binding to attach (the attachee; this binding owns the attach track). |
target_binding_guid |
string | yes | GUID of the binding to attach TO (the parent/target). |
start_frame |
number | no | Optional start frame of the attach section (default: the sequence playback range start). |
duration |
number | no | Optional duration in frames (default: the playback range size). |
socket_name |
string | no | Optional socket name on the target to attach to (default: none -> target root). |
component_name |
string | no | Optional component name on the target to attach to (default: none). |
Returns: { sequence_name: string, binding_guid: string, target_binding_guid: string, track_added: bool, already_exists: bool, start_frame: int, duration: int, socket_name: string, component_name: string, section_count: int, track_class: string, saved: bool, save_error?: string }
add_audio_section¶
Additive
Adds (or reuses) a root audio track on a Level Sequence and optionally a section. Finds an existing root UMovieSceneAudioTrack or adds one. If sound_path loads a USoundBase, a sound section is placed at the playback range start. Inverse: remove_section without binding_guid, track_type=audio.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
sound_path |
string | no | Optional content path of a USoundBase, e.g. "/Game/Audio/MySound". |
Returns: { sequence_name: string, track_class: string, audio_track: string, audio_track_index: int (the index set_audio_section_properties takes), track_added: bool, sound_loaded: bool, section_added: bool, section_count: int, sound_path: string, saved: bool, save_error?: string }
add_camera_cut¶
Additive
Adds a camera cut section bound to a camera binding over a frame range, creating the camera cut track if it does not yet exist, then saves the sequence. The binding must exist in the sequence (get_sequence_bindings lists them), or nothing is added. Inverse: remove_section without binding_guid, track_type=cameracut.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence (first asset under /Game with that name), or its full /Game path. |
camera_binding_guid |
string | yes | GUID of the camera binding the cut switches to. |
sequence_path |
string | no | Alias of sequence_name. |
start_frame |
number | no | Optional inclusive start frame in tick resolution (default 0). |
end_frame |
number | no | Optional exclusive end frame (default start_frame + 1); must be > start_frame. |
Returns: { sequence_name: string, sequence_path: string, camera_binding_guid: string, start_frame: int, end_frame: int, track_class: string, section_class: string, section_index: int, section_count: int, section_added: bool, saved: bool, save_error?: string }
add_camera_cut_track¶
Additive Idempotent
Add the camera cut track of a Level Sequence found by asset name under /Game (first case-insensitive match), the root track whose sections pick the camera the sequence shows, in one undo step, then save the sequence. A movie scene holds at most one: when it already has one, nothing is added, written or saved (track_added false, changed false, saved false), so a repeat call is idempotent, and a camera cut track of another class there is an error. A new track has no section. A missing sequence is an error; a failed save makes success false with saved=false and save_error. Cuts: add_camera_cut; a camera with its cut: create_cine_camera_in_sequence. Inverse: remove_sequence_track track_name=CameraCut.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
Returns: { sequence_name: string, track_class: string, track_added: bool, section_count: int, changed: bool, saved: bool, save_error?: string, note?: string }
add_component_material_track¶
Additive
Adds a component material parameter track for one indexed material slot to an object binding of a Level Sequence (first asset-name match under /Game), or reuses the binding's existing track for that slot, and saves the sequence. With parameter_name it keys that scalar parameter at frame (a tick-resolution frame) and reads the key back: success requires it, and a key the engine would skip (locked section, read-only sequence) is refused before anything is written; without it, it only adds a section spanning the playback range when the track has none. The slot index is not checked against the bound component, which is not resolved. An unknown binding_guid or a material_index that is not a whole number >= 0 is an error. For a Material Parameter Collection use add_material_parameter_collection_track; for other animated properties use add_property_track. Inverse: remove_sequence_track with binding_guid.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence |
binding_guid |
string | yes | GUID of the actor/component object binding to attach the material track to |
material_index |
integer | no | Optional indexed material slot the track animates, a whole number >= 0 (default 0) |
parameter_name |
string | no | Optional scalar material parameter name to key |
value |
number | no | Optional scalar value for the keyed parameter (default 0.0) |
frame |
number | no | Optional frame number for the key (default 0) |
Returns: { sequence_name: string, binding_guid: string, track_class: string, track_added: bool, material_index: int, material_type: string, parameter_name: string, value: number, key_added: bool (read back from the track), section_added: bool (the track gained a section, keying included), scalar_channel_count: int, section_count: int, saved: bool, save_error?: string }
add_event_track_section¶
Additive
Append a new UMovieSceneEventSection to the existing UMovieSceneEventTrack on the sequence. Inverse: remove_section without binding_guid, track_type=event.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path of the Level Sequence. |
sequence_name |
string | no | Alias for sequence_path. |
start_frame |
number | no | Inclusive start frame for the new event section (default 0). |
end_frame |
number | no | Exclusive end frame for the new event section (default = start_frame + 1). |
Returns: { sequence_path: string, track_class: string, section_index: int, section_count: int, start_frame: int, end_frame: int, section_class: string, section_added: bool, saved: bool, save_error?: string }
add_event_track_to_sequence¶
Additive
Add a new root event track (UMovieSceneEventTrack) to a Level Sequence found by asset name under /Game (first case-insensitive match), in one undo step, then save the sequence. Every call adds another track, even when the sequence already has one, and the new track has no sections (section_count 0). Add trigger sections with add_event_track_section, which appends to the first event track of the sequence. A sequence that is not found is an error; a failed save (for example during PIE) makes success false with saved=false and save_error. List root tracks with get_sequence_tracks; the inverse is remove_sequence_track; for a fade track use add_fade_track_to_sequence.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name (not a path) of the Level Sequence, e.g. "LS_Intro"; the first match under /Game is used, ignoring case. |
Returns: { sequence_name: string, track_class: string, section_count: int, saved: bool, save_error?: string }
add_fade_track_to_sequence¶
Additive Idempotent
Add the root fade track of a Level Sequence found by asset name under /Game (first case-insensitive match), with a fade section spanning the playback range, in one undo step, then save the sequence. A fade track already there is reused and gets a section only when it has none, so a repeat call is idempotent: a fade track that already has a section is left as it is, with nothing written or saved (track_added and section_added false, changed false, saved false). A missing sequence is an error; a failed save makes success false with saved=false and save_error. List root tracks with get_sequence_tracks; inverse: remove_sequence_track.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
Returns: { sequence_name: string, track_class: string, track_added: bool, section_added: bool, section_count: int, section_class: string, changed: bool, saved: bool, save_error?: string, note?: string }
add_keyframe_to_property_track¶
Additive
Adds a keyframe to a property track's section channel(s) at the given time, in one undo step, then saves the sequence. The property track must already exist (call add_property_track first); property_name picks which one when the binding has several tracks of that type. The value is keyed onto every channel of the section. By default a key already at that tick frame is updated in place; interp_mode (float/vector/color tracks only) instead INSERTS a key with that interpolation -- linear, constant, or cubic with explicit broken arrive_tangent/leave_tangent -- even on an occupied frame. Read keys back with get_channel_keyframes, retime one with move_keyframe.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
binding_guid |
string | yes | GUID of the binding owning the property track. |
property_type |
string | yes | One of "Float", "Bool", "Vector", "Color", "Visibility". |
time_seconds |
number | yes | Time (seconds, >= 0) at which to place the key; rounded to the nearest tick frame. |
property_name |
string | no | Optional name or path of the property whose track takes the key, case ignored; omitted, the first track of property_type on the binding. A name no track of that type animates is an error that lists the ones it does. |
value |
any | no | Key value. For Float: a scalar. For Bool/Visibility: a bool. For Vector/Color: a list of numbers (Vector/Color). Defaults to 0 / [] if omitted. |
interp_mode |
string | no | Optional, float channels only: "cubic", "linear" or "constant". When given the key is inserted with that interpolation instead of updating one at that frame. |
arrive_tangent |
number | no | Optional tangent for interp_mode "cubic" (default 0). |
leave_tangent |
number | no | Optional tangent for interp_mode "cubic" (default 0). |
Returns: { sequence_name: string, binding_guid: string, property_type: string, property_name: string, time_seconds: float, key_frame: int, keys_added: int, channel_count: int, key_index: int, key_count: int, interp_mode?: string, arrive_tangent?: float, leave_tangent?: float, saved: bool, save_error?: string } -- key_index and key_count describe the section's first channel; property_name is the property of the track that took the key.
add_level_visibility_track¶
Destructive Idempotent
Add a root level-visibility track (UMovieSceneLevelVisibilityTrack) to a Level Sequence found by asset name under /Game, or reuse the one it has, give it a section spanning the playback range when it has none, and set that section's streamed-level visibility, in one undo step, then save the sequence. Idempotent: a repeat call reuses the track and its first section and overwrites their visibility, and their level names when level_names is non-empty, with the values passed; visible defaults to true, so omitting it sets an existing section back to Visible. A missing sequence is an error; a failed save makes success false with saved=false and save_error. For an actor's own visibility use add_property_track (property_type=Visibility, property_name=bVisible); list root tracks with get_sequence_tracks; the inverse is remove_sequence_track.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name (not a path) of the Level Sequence, e.g. "LS_Intro"; the first match under /Game is used, ignoring case. |
visible |
boolean | no | Optional bool, default true (levels Visible); false makes them Hidden. Written on every call. |
level_names |
array | no | Optional array of streamed-level short names the section controls, e.g. ["Sublevel_Interior"]; a non-empty array overwrites the section's list, an empty or omitted one keeps it. |
Returns: { sequence_name: string, track_class: string, track_added: bool, section_added: bool, section_count: int, section_class: string, visibility: string, level_count: int, saved: bool, save_error?: string }
add_marked_frame¶
Destructive Idempotent
Adds a marked frame (a labelled marker on the Sequencer timeline) at a tick-resolution frame of a Level Sequence found by asset name under /Game, in one undo step, and saves the sequence; is_determinism_fence turns the same mark into an evaluation fence. Idempotent per frame: an existing mark at that frame is updated instead of duplicated, its label replaced when one is given and both flags overwritten with the values passed (false when omitted); already_existed says which. When the mark already has both flags and the label given (or no label is given), the call changes and saves nothing (changed false, saved false). Read marks with get_marked_frames, delete one with remove_marked_frame.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
frame |
number | yes | Tick frame number to mark. |
label |
string | no | Optional human-readable label (auto-generated if empty). |
is_determinism_fence |
boolean | no | Optional bool (default false): treat the mark as an evaluation fence (cannot be crossed in one evaluation). |
is_inclusive |
boolean | no | Optional bool (default false): when a determinism fence, how the previous/next ranges are dissected ((X,Y]->(Y,Z] vs (X,Y)->[Y,Z]). |
Returns: { sequence_name: string, frame: int, mark_index: int, label: string, is_determinism_fence: bool, is_inclusive: bool, already_existed: bool, marked_frame_count: int, changed: bool, saved: bool, save_error?: string, note?: string }
add_material_parameter_collection_track¶
Additive
Add a Material Parameter Collection root track bound to an existing MPC asset to a Level Sequence found by asset name under /Game, or reuse its MPC track already bound to that collection, in one undo step, then save the sequence. With parameter_name it keys that scalar parameter at frame (a tick-resolution frame) with value, and key_added is read back: a key the engine skips (locked section, read-only sequence) leaves key_added false without failing the call. Without parameter_name it only gives the track a playback-range section when it has none. The parameter name is not checked against the collection. A missing sequence or MPC is an error; a failed save makes success false. Component material slot: add_component_material_track; a new collection parameter: add_collection_parameter.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name (not a path) of the Level Sequence, e.g. "LS_Intro"; the first match under /Game is used, ignoring case. |
mpc_path |
string | yes | Object path of an existing UMaterialParameterCollection asset (e.g. /Game/MyGame/MPC_X) |
parameter_name |
string | no | Optional scalar parameter name to key on the MPC track; not checked against the collection. Omit it to add only the track and a section. |
value |
number | no | Optional scalar value for the keyed parameter (default 0.0) |
frame |
number | no | Optional key frame in the sequence's tick resolution, not display-rate frames (default 0); fractions are truncated. |
Returns: { sequence_name: string, track_class: string, track_added: bool, mpc_path: string, mpc_name: string, parameter_name: string, value: number, key_added: bool, section_added: bool, scalar_channel_count: int, section_count: int, saved: bool, save_error?: string }
add_property_track¶
Additive
Adds a typed property track + section to a Level Sequence binding. The track animates a named property on the bound object (e.g. property_type Float with "Intensity", Visibility with "bVisible"). A section spanning the movie scene's playback range is created so keys evaluate. Inverse: remove_sequence_track with binding_guid.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence (found by AssetName under /Game), or its full /Game path. |
binding_guid |
string | yes | GUID of an existing binding (possessable or spawnable). |
property_type |
string | yes | One of "Float", "Bool", "Vector", "Color", "Visibility". |
property_name |
string | yes | Name of the animated property (e.g. "RelativeLocation", "Intensity", "bHidden"). Used as both the property name and path. |
Returns: { sequence_name: string, binding_guid: string, property_type: string, property_name: string, track_class: string, section_class: string, section_created: bool, section_count: int, saved: bool, save_error?: string }
add_sequence_folder¶
Additive Idempotent
Create a Sequencer outliner folder on a Level Sequence's movie scene (root folder, or a child of a named parent), inside an undo transaction, and save the sequence; success requires the save. Idempotent by name: a folder that already exists succeeds with already_existed true and saved false (nothing is written).
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path OR bare asset name of the target Level Sequence. |
folder_name |
string | yes | Name of the folder to create. |
sequence_name |
string | no | Alias for sequence_path. |
parent_folder |
string | no | Optional name of an existing parent folder; if given, the new folder is nested under it instead of at the root. |
Returns: { sequence_path: string, folder_name: string, parent_folder: string, created: bool, already_existed: bool, root_folder_count: int, saved: bool, save_error?: string }
add_shot_section¶
Additive
Adds a cinematic shot section (UMovieSceneCinematicShotSection) to the shot track and saves the sequence. Creates the cinematic shot track if it does not exist yet. The inner shot sequence is shot_sequence_path, or <target name>_Shot in the target's folder when omitted; it is loaded when it exists, else created and saved as a new asset (inner_sequence_created says which). An inner shot sequence that cannot be loaded, created or saved (a new one that fails to save stays in memory only), that is the target itself or that already plays it at any depth is an error and nothing is added. success is false, with save_error, when the save of the target fails. Inverse: remove_section without binding_guid, track_type=shot.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the target Level Sequence. |
sequence_name |
string | no | Alias for sequence_path. |
shot_sequence_path |
string | no | Optional content path of the inner shot Level Sequence. If omitted, an inner shot Level Sequence is created and persisted. |
start_frame |
number | no | Inclusive start frame for the shot section (default 0). |
duration |
number | no | Section duration in tick frames (default 150). |
Returns: { sequence_path: string, track_class: string, track_added: bool, section_added: bool, inner_sequence_created: bool (true only when this call created the inner sequence), shot_name: string, shot_sequence_path: string, start_frame: int, duration: int, section_count: int, section_class: string, saved: bool, save_error?: string }
add_shot_track¶
Additive Idempotent
Make sure a Level Sequence has its cinematic shot track (UMovieSceneCinematicShotTrack), the root track that holds shot sections, adding it when missing, in one undo step, then save the sequence. Idempotent: a sequence that already has one keeps it (track_added=false; section_count counts its shots), though the sequence is saved again either way. add_shot_section also creates this track when missing, so call this one only to get an empty shot track; list tracks with get_sequence_tracks; remove_sequence_track is the inverse. The sequence must already exist (create_level_sequence). An unknown sequence is an error and nothing changes; a failed save makes success false with saved=false and save_error, the track kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path, e.g. "/Game/Cinematics/LS_Intro", OR bare asset name "LS_Intro" (the first Level Sequence under /Game with that name); get_level_sequences lists them. |
sequence_name |
string | no | Alias for sequence_path. |
Returns: { sequence_path: string, track_class: string, track_added: bool, section_count: int, saved: bool, save_error?: string }
add_skeletal_animation_track¶
Additive
Adds a skeletal-animation track to a Level Sequence binding. If anim_path loads a UAnimSequenceBase (a UAnimMontage qualifies), a section is added starting at the playback range start; otherwise just the empty track. Inverse: remove_sequence_track with binding_guid; one section: remove_section.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
binding_guid |
string | yes | GUID of an existing binding (typically a SkeletalMeshActor). |
anim_path |
string | no | Optional content path of a UAnimSequenceBase or UAnimMontage, e.g. "/Game/Anims/MyAnim". |
Returns: { sequence_name: string, binding_guid: string, track_class: string, track_added: bool, anim_loaded: bool, section_added: bool, section_count: int, anim_path: string, saved: bool, save_error?: string }
add_slomo_track¶
Destructive Idempotent
Add the root time-dilation (slomo) track of a Level Sequence found by asset name under /Game (first case-insensitive match), with a section spanning the playback range, and key dilation at frame, in one undo step, then save the sequence. A slomo track already there is reused with its first section; the key overwrites a key at that tick frame whole, interpolation included, or is added. A track whose section already holds that very key at that frame changes and saves nothing (changed false, saved false), so a repeat call is idempotent. This is asset data, not the PIE player play rate. A missing sequence is an error; a failed save makes success false with saved=false and save_error. Change the key's interpolation with set_keyframe_interpolation.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence |
dilation |
number | no | Optional time-dilation multiplier (default 1.0; <1 slower, >1 faster) |
frame |
number | no | Optional frame number for the dilation key (default 0) |
Returns: { sequence_name: string, track_class: string, track_added: bool, section_added: bool, section_count: int, section_class: string, dilation: number, changed: bool, saved: bool, save_error?: string, note?: string }
add_spawnable_to_sequence¶
Additive
Add a spawnable binding to a Level Sequence asset: the sequence itself spawns an actor of class_name while it plays and despawns it after, so no level actor is needed or created now and no open Sequencer is needed. To animate an actor already placed in the level use bind_actor_to_sequence (a possessable) instead; for a keyed camera with its camera cut use create_cine_camera_in_sequence. Each call adds another binding (not idempotent). One undo step, then the sequence is saved. Pass the returned binding_guid to add_transform_track_to_binding and the other binding tools; list bindings with get_sequence_bindings; remove_sequence_binding is the inverse. An unknown sequence or a class that is not an AActor subclass is an error and nothing is added; a failed save makes success false with saved=false and save_error, the binding kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name (not a path) of the target Level Sequence, e.g. "LS_Intro": the first Level Sequence under /Game with that name, case-insensitive; get_level_sequences lists them, create_level_sequence makes one. |
class_name |
string | no | AActor subclass to spawn: "CineCameraActor" (default), "StaticMeshActor", "PointLight", another native class by short name (e.g. "SkeletalMeshActor"), or a path such as "/Script/Engine.SkyLight" or a Blueprint's "/Game/BP_Door.BP_Door_C". |
Returns: { sequence_name: string, binding_guid: string, display_name: string, class_name: string, spawnable: bool, saved: bool, save_error?: string }
add_subcomponent_possessable¶
Additive
Adds a component possessable as a child of an existing binding (possessable or spawnable) of a Level Sequence found by asset name under /Game, in an undo transaction, and saves the sequence; each call adds a new one, named possessable_name or else the component_class text. It records name, class and parent only: no component object is bound to it. To possess an actual component of an editor-world actor use bind_component_to_sequence; for whole actors use bind_actor_to_sequence or add_spawnable_to_sequence. An unknown parent GUID, an unresolvable class, or a class that is not an ActorComponent is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the level sequence asset. |
parent_binding_guid |
string | yes | GUID of the parent binding (spawnable or possessable). |
component_class |
string | yes | Component class name (e.g. 'StaticMeshComponent', 'SpotLightComponent'). |
possessable_name |
string | no | Optional override name for the new possessable. |
Returns: { sequence_name: string, possessable_guid: string, component_class: string, parent_guid: string, saved: bool, save_error?: string }
add_subsequence_track¶
Additive
Nests one Level Sequence in another: finds the target's first root track of exactly the subsequence class (never a cinematic shot track or another subclass) or adds one, adds a sub section playing the inner sequence from start_frame for duration tick-resolution frames, and saves the target. The inner sequence is sub_sequence_path, or <target name>_Sub in the target's folder when omitted; it is loaded when it exists, else created and saved as a new asset (inner_sequence_created says which). Each call adds another section. An inner sequence that cannot be loaded, created or saved (a new one that fails to save stays in memory only), that is the target itself, or that already plays the target at any depth is an error and nothing is added. success is false, with save_error, when the save of the target fails. For cinematic shots use add_shot_track. One sub-sequence section: remove_section without binding_guid, track_type=sub; the whole track: remove_sequence_track.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path (e.g. "/Game/MyGame/SUBSEQ_Example") OR bare asset name of the target Level Sequence. |
sequence_name |
string | no | Alias for sequence_path. |
sub_sequence_path |
string | no | Optional content path of the sub Level Sequence to nest. If omitted, a sibling inner Level Sequence is created and persisted. |
start_frame |
number | no | Inclusive start frame for the sub section (default 0). |
duration |
number | no | Section duration in tick frames (default 150). |
Returns: { sequence_path: string, track_class: string, track_added: bool, section_added: bool, inner_sequence_created: bool (true only when this call created the inner sequence), start_frame: int, duration: int, section_count: int, sub_sequence_path: string, sub_sequence_name: string, saved: bool, save_error?: string }
add_transform_keyframe¶
Additive
Adds one transform keyframe (9 double channels) at a time on a binding's transform section. Requires a transform track to already exist (call add_transform_track_to_binding first).
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
binding_guid |
string | yes | GUID of the binding. |
time_seconds |
number | yes | Time of the key in seconds (>= 0). Converted to ticks via tick resolution. |
location |
array | no | Optional [x, y, z] world location. |
rotation |
array | no | Optional [pitch, yaw, roll] world rotation. |
scale |
array | no | Optional [x, y, z] scale (default 1,1,1). |
Returns: { sequence_name: string, binding_guid: string, time_seconds: float, key_frame: int, keys_added: int, channel_count: int, saved: bool, save_error?: string }
add_transform_track_to_binding¶
Destructive Idempotent
Give one binding of a Level Sequence a 3D transform track (location, rotation, scale) with a section over the playback range, so the bound actor can be animated. Use it before add_transform_keyframe, which needs it; the binding comes from add_spawnable_to_sequence or bind_actor_to_sequence (get_sequence_bindings lists them). Other track kinds on a binding: add_property_track, add_skeletal_animation_track, add_attach_track. Idempotent: a binding that already has a transform track keeps it and its first section (track_added and section_created false); a track with no section gets one. An unknown sequence, a malformed GUID or a GUID that is not a binding of the sequence is an error and nothing changes. One undo step, then the sequence is saved; a failed save answers success false with the change kept in memory. Remove it with remove_sequence_track (track_name "MovieScene3DTransformTrack" and the same binding_guid).
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name of the Level Sequence, not a path, e.g. "LS_Intro"; the one with that name under /Game is used. |
binding_guid |
string | yes | GUID of the binding, e.g. "8E2F14A64B7D5C3E9A1B2C3D4E5F6071", as add_spawnable_to_sequence, bind_actor_to_sequence or get_sequence_bindings return it. |
Returns: { sequence_name: string, binding_guid: string, track_class: string, track_added: bool, section_created: bool, section_count: int, saved: bool, save_error?: string }
bind_actor_to_sequence¶
Destructive Idempotent
Adds a possessable binding to a Level Sequence for an existing editor-world actor, and with property_name + property_type also adds a typed property track (with a section spanning the playback range) to it -- the bind+animate flow in one call. Idempotent per actor: an actor the sequence already possesses keeps its binding (binding_created false), and without a property to add nothing changes or is saved.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
actor_name |
string | yes | Label (or name) of the actor in the current editor world to possess. |
property_name |
string | no | Optional property of the actor to animate (e.g. "bHidden"); needs property_type. Used as both the property name and path. |
property_type |
string | no | Optional, with property_name: one of "Float", "Bool", "Vector", "Color", "Visibility". |
Returns: { sequence_name: string, actor_name: string, binding_guid: string, display_name: string, possessable: bool, binding_created: bool, property_name?: string, property_type?: string, track_class?: string, section_class?: string, changed: bool, saved: bool, save_error?: string, note?: string } -- the property fields only when a track was added.
bind_component_to_sequence¶
Destructive
Adds a possessable binding for an actor's component to a Level Sequence, and with property_name + property_type also adds a typed property track (with a section spanning the playback range) to that new binding. Resolves the actor by label in the current editor world, finds the named component (by component name, class name, or "root"), adds a possessable for the component class, binds the component, and parents the component binding to the actor's binding when the actor is already possessed. Every call makes a NEW component possessable; when the track step fails the new binding stays.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the target Level Sequence. |
actor_name |
string | yes | Label (or name) of the actor in the current editor world. |
component_name |
string | yes | Component object name, component class name, or "root". |
sequence_name |
string | no | Alias for sequence_path. |
property_name |
string | no | Optional component property to animate (e.g. "Intensity"); needs property_type. Used as both property name and path, and not checked against the component. |
property_type |
string | no | Optional, with property_name: one of "Float", "Bool", "Vector", "Color", "Visibility". |
Returns: { sequence_path: string, actor_name: string, component_name: string, component_class: string, parent_binding_guid?: string, binding_guid: string, display_name: string, component_bound: bool, parented_to_actor: bool, possessable_count: int, property_name?: string, property_type?: string, track_class?: string, section_class?: string, saved: bool, save_error?: string } -- the property fields only when a track was added.
create_cine_camera_in_sequence¶
Additive
Adds a keyed camera to an existing Level Sequence in one call: a new spawnable CineCameraActor binding, a transform track whose section spans the playback range with location, rotation and scale 1 keyed at frame 0, and a camera cut bound to that camera over the whole playback range (the camera cut track is added when missing). One undo step; then saves the sequence, and success requires the save. Each call adds another camera and cut; on a sequence that already has cuts the engine re-sorts them and the new cut overlaps them. The sequence must exist (create_level_sequence; get_level_sequences lists names). For another spawnable class use add_spawnable_to_sequence, for a cut to an existing binding add_camera_cut, for more keys add_transform_keyframe; get_sequence_bindings reads the result.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name of the Level Sequence, not a path (e.g. "Intro"): the first Level Sequence under /Game with that name, case-insensitive. |
location |
array | no | Optional [x, y, z] world location in cm for the camera's key at frame 0 (default [0, 0, 0]). |
rotation |
array | no | Optional rotation in degrees for the key at frame 0: object {"pitch": P, "yaw": Y, "roll": R} (missing axes 0) or array [pitch, yaw, roll]; default all 0. |
Returns: { sequence_name: string, binding_guid: string, display_name: string, class_name: string, spawnable: bool, transform_keyed: bool, camera_cut_added: bool, saved: bool, save_error?: string }
create_level_sequence¶
Destructive
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_settings (duration); list sequences with get_level_sequences.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the new sequence to create |
package_path |
string | no | Target content path, defaults to /Game/Sequences |
duration |
number | no | Playback duration in seconds, above 0 and at most 3600, default 10 |
frame_rate |
number | no | Frame rate in fps, at least 1 and at most 120, truncated to whole fps, default 30 |
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 }
duplicate_keyframe¶
Destructive Idempotent
Copy the value of one existing key to another time on a property track of a Level Sequence binding, in one undo step, then save the sequence. The sequence is found by asset name under /Game (first case-insensitive match); property_type picks the binding's first track of that type (first section) and channel_index the channel, one per component for Vector and Color. Both times are seconds rounded to tick frames, and the source key must sit exactly on its frame or the call is an error. Only the value is copied, not interpolation or tangents; a key at the destination is overwritten, one equal to the copy is a no-op (changed false, saved false), so a repeat is idempotent. A failed save gives success false, saved=false and save_error. Move instead: move_keyframe; drop: remove_keyframe; list: get_channel_keyframes; fix the copy's interpolation: set_binding_channel_keyframe_interpolation.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
binding_guid |
string | yes | GUID of the binding owning the property track. |
property_type |
string | yes | One of "Float", "Bool", "Vector", "Color", "Visibility". |
source_time_seconds |
number | yes | Time (seconds) of the source key to copy. |
dest_time_seconds |
number | yes | Destination time (seconds) for the cloned key. |
channel_index |
number | no | Index of the channel to read/write (default 0). |
Returns: { sequence_name: string, binding_guid: string, property_type: string, source_time_seconds: float, dest_time_seconds: float, source_frame: int, dest_frame: int, channel_index: int, duplicated_value: string, keys_written: int, applied: bool, changed: bool, saved: bool, save_error?: string, note?: string }
get_audio_section_properties¶
Read-only
Read the playback settings of one audio section of a Level Sequence (path or bare name): the first root audio track, section by section_index. Use it instead of get_properties because it evaluates what no UPROPERTY holds directly: volume and pitch sampled at frame 0, the key counts of the animated volume/pitch channels, and looping via IsRepeating(); it also reports sound, start offset and attenuation override. Pure reader (no transaction, no save); write with set_audio_section_properties.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the Level Sequence that owns the (root) audio track. |
sequence_name |
string | no | Alias for sequence_path. |
section_index |
integer | no | Index of the section on the resolved root audio track (default 0). |
Returns: { sequence_path: string, section_class: string, section_index: int, sound_path: string, start_offset: int, volume: number, pitch: number, volume_key_count: int, pitch_key_count: int, looping: bool, play_until_finished?: bool (needs UE 5.8), suppress_subtitles: bool, override_attenuation: bool, attenuation_path: string }
get_channel_keyframes¶
Read-only
Lists every key of one channel of one section of a Level Sequence: index, tick-resolution frame, time in seconds and value, plus interpolation, tangent mode and tangents for double and float channels (bool keys have none). The section is resolved like get_section_info (binding_guid, track_type or track_index, section_index; a root track without binding_guid); channel_type and channel_index pick the channel. Read-only: nothing is modified or saved; an empty channel returns key_count 0, and a missing sequence, track, section or channel is an error. Use it to find the index or frame that move_keyframe, remove_keyframe, duplicate_keyframe and set_binding_channel_keyframe_interpolation take, and to check add_transform_keyframe or add_keyframe_to_property_track; get_section_info reads the section's range and settings.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game object path (e.g. "/Game/Cinematics/Intro.Intro") or bare asset name ("Intro") of the Level Sequence; a bare name, or a path that does not load, resolves to the first Level Sequence under /Game with that asset name. |
sequence_name |
string | no | Alias for sequence_path, read when sequence_path is absent or empty; same formats. |
binding_guid |
string | no | GUID of the binding whose section to read, as get_sequence_bindings returns it. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional track kind; the first track of exactly that kind wins, else the first subclass: transform, float, bool, vector, color, visibility, audio, event, fade, skeletalanimation, sub, cameracut, shot, slomo, property, attach. An unrecognised value is ignored and track_index is used. |
track_index |
integer | no | 0-based index into the binding's tracks, or into the root tracks without binding_guid, in get_sequence_tracks order (default 0); used when track_type is omitted. |
section_index |
integer | no | 0-based index of the section on the resolved track (default 0); out of range is an error. |
channel_type |
string | no | Channel value kind: "double" (default; transform tracks) | "float" (float, color and other property tracks) | "bool" (bool and visibility tracks). Aliases transform, scalar, color, boolean, visibility are accepted; anything else is an error. |
channel_index |
integer | no | 0-based index among the section's channels of that kind (default 0); on a transform section 0-2 = location X/Y/Z, 3-5 = rotation roll/pitch/yaw, 6-8 = scale X/Y/Z. |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, channel_index: int, channel_type: string, key_count: int, keyframes: [{ index: int, frame: int, time_seconds: number, value: number|bool, interp_mode: string, tangent_mode: string, arrive_tangent: number, leave_tangent: number }] }
get_level_sequence_status_runtime¶
Read-only
Read the playback state of a runtime Level Sequence player in a PIE or game world, found by the player_key play_level_sequence_runtime returned, without changing it: status (Playing, Paused or Stopped), the playing, paused and reversed flags, current_time and duration in seconds, frame_rate in frames per second and playback_progress as a percentage (0 to 100; 0 for a zero-length sequence). Use it to check the effect of pause_level_sequence_runtime, resume_level_sequence_runtime or set_level_sequence_time_runtime; for a sequence asset's length and frame rates without any player use get_timeline_info instead. A key that was never issued, was released by stop_level_sequence_runtime, or whose player was destroyed (ending PIE destroys them all) is an error saying to call play_level_sequence_runtime first.
| Parameter | Type | Required | Description |
|---|---|---|---|
player_key |
string | yes | The player_key string play_level_sequence_runtime returned in this editor session; keys do not survive the end of PIE. |
Returns: { player_key: string, status: string, is_playing: bool, is_paused: bool, is_reversed: bool, current_time: number, duration: number, frame_rate: number, playback_progress: number }
get_level_sequences¶
Read-only
List the Level Sequence assets under a content folder and its subfolders (default /Game) from the asset registry, without loading or changing anything: per sequence its name, package_path, asset_path and class. Use it to find the sequence_name or path that get_timeline_info, get_sequence_tracks, play_timeline, set_timeline_time and play_level_sequence_runtime take; for any asset type use find_assets_by_name; to make one use create_level_sequence. At most max_results entries come back, in registry order: total_count is the number of sequences found, returned_count the number listed, and truncated is true when total_count is larger, so narrow package_path or raise max_results. A folder with none gives an empty list; a max_results outside 1 to 10000 is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
package_path |
string | no | Long package path of the folder to search, subfolders included, e.g. "/Game/Cinematics" (default "/Game"; plugin content needs its own root such as "/MyPlugin"). |
max_results |
integer | no | Maximum number of sequences to return, an integer from 1 to 10000 (default 1000). |
Returns: { sequences: [object], total_count: int (found under package_path), returned_count: int (listed, at most max_results), max_results: int, truncated: bool }
get_marked_frames¶
Read-only
Lists the user marked frames (labelled timeline markers) of a Level Sequence in stored order, each with its index, tick-resolution frame, label and determinism-fence flags, plus whether the marks are locked. Read-only: loads the sequence, changes and saves nothing; a sequence without marks returns an empty list and count 0, an unknown name is an error. Use it to get the index, frame or label that remove_marked_frame takes, and to check add_marked_frame, which adds or updates a mark; lock marks with set_sequence_settings (marked_frames_locked). Sequence names come from get_level_sequences; tracks and sections are read with get_sequence_tracks.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name of the Level Sequence, not a path (e.g. "Intro"): the first Level Sequence under /Game with that name, case-insensitive. |
Returns: { sequence_name: string, marked_frames: [{index, frame, label, is_determinism_fence, is_inclusive}], marked_frame_count: int, marked_frames_locked: bool }
get_section_info¶
Read-only
Read the settings of one section of a Level Sequence: start_frame and end_frame (tick-resolution frames, end exclusive; 0 for an open, infinite bound), ease-in and ease-out lengths and whether they are manual, completion_mode (keep_state, restore_state or project_default), blend_type (absolute, additive, relative, additive_from_base, override, or invalid when unset), is_locked, is_active and, for a 3D-attach section, its six attach_rules. The section is found by binding_guid (none for a root track such as a shot, camera cut or audio track), then track_type or track_index, then section_index: get_sequence_tracks lists tracks with section counts, get_sequence_bindings the bindings. The read side of set_section_properties, set_section_range and set_attach_section_rules. Read-only and idempotent; reads the asset, no open Sequencer needed. An unknown sequence, an invalid GUID, a binding without tracks, a track_type with no such track, or an index out of range is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path, e.g. "/Game/Cinematics/LS_Intro", OR bare asset name "LS_Intro" of the target Level Sequence. |
sequence_name |
string | no | Alias for sequence_path. |
binding_guid |
string | no | GUID of the binding whose section to inspect, as get_sequence_bindings or get_sequence_tracks gives it. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional kind of track, case-insensitive: "transform"|"float"|"bool"|"vector"|"color"|"visibility"|"audio"|"event"|"fade"|"skeletalanimation"|"subsequence"|"cameracut"|"shot"|"slomo"|"property"|"attach"; the first track of that kind wins and none is an error; any other value is ignored and track_index picks. |
track_index |
integer | no | Index into the binding's tracks (0 = first track, default 0), in get_sequence_tracks order. Without binding_guid it indexes the root tracks. |
section_index |
integer | no | Index of the section on the resolved track (default 0); get_sequence_tracks gives each track's section_count. |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, section_index: int, start_frame: int, end_frame: int, ease_in_frames: int, ease_out_frames: int, manual_ease_in: bool, manual_ease_out: bool, completion_mode: string, blend_type: string, blend_type_valid: bool, is_locked: bool, is_active: bool, is_attach_section: bool, attach_rules: object? }
get_sequence_bindings¶
Read-only
Lists the object bindings of a Level Sequence, the first asset under /Game whose name matches sequence_name (case-insensitive), with each binding's bound class, parent GUID, spawn ownership and tracks (class, display name, section count, is_empty); read-only, needs no open Sequencer. kind narrows it to possessables or spawnables, binding_guid to one binding. spawnable is true when the binding has a spawn track (a spawnable is recorded as a possessable plus a spawn track) and possessable otherwise; possessable_count and spawnable_count are the movie scene's own counts and can disagree with those flags. Root tracks are not listed: use get_sequence_tracks. Change a spawnable's ownership with set_spawn_ownership; one section's range, easing and blend come from get_section_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
kind |
string | no | Optional 'all' (default), 'possessable' or 'spawnable' (case-insensitive): which bindings to list. |
binding_guid |
string | no | Optional GUID of one binding to list alone; an invalid GUID, or one the sequence has no binding for, is an error. |
Returns: { sequence_name: string, kind: string, binding_guid?: string, bindings: [{guid, name, spawnable, possessable, class, parent_guid, spawn_ownership, track_count, tracks: [{class, display_name, section_count, is_empty}]}], binding_count: int, possessable_count: int, spawnable_count: int } -- class is the bound (or spawned) actor class, "null" when unknown; parent_guid is "" for a top-level binding; spawn_ownership (InnerSequence, RootSequence or External) is "" unless the binding is a spawnable custom binding.
get_sequence_folders¶
Read-only
Reads the Sequencer outliner folder tree of a Level Sequence: each root folder with its child folders nested to any depth, the root tracks it holds (class and track name) and the object-binding GUIDs it holds. Read-only: nothing is modified or saved; a sequence without folders returns an empty list, and a sequence that cannot be found is an error. Use it to check add_sequence_folder, remove_sequence_folder and move_track_to_folder, and to get the folder_name they take. Tracks and bindings outside every folder are not listed here: get_sequence_tracks and get_sequence_bindings give the full flat lists.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game object path (e.g. "/Game/Cinematics/Intro.Intro") or bare asset name ("Intro") of the Level Sequence; a bare name, or a path that does not load, resolves to the first Level Sequence under /Game with that asset name. get_level_sequences lists them. |
sequence_name |
string | no | Alias for sequence_path, read when sequence_path is absent or empty; same formats. |
Returns: { sequence_path: string, root_folder_count: int, folders: [{ name: string, child_folders: [...recursive...], child_tracks: [{class, name}], child_bindings: [guid_string] }] }
get_sequence_tracks¶
Read-only
Lists the tracks of a Level Sequence, given as a bare asset name (the first asset under /Game whose name matches, case-insensitive) or a /Game path: root (master) tracks, the camera cut track included, with display name, track name, class and section count, then each object binding (guid, display name) with its own tracks nested, plus totals -- track counts, section count and a per-class breakdown. Read-only; needs no open Sequencer. total_track_count is the number of tracks listed: root tracks plus every binding's tracks. For spawnable/possessable flags and one binding's tracks use get_sequence_bindings.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target level sequence, or its /Game path |
sequence_path |
string | no | Alias of sequence_name |
Returns: { sequence_name: string, sequence_path: string, master_tracks: [{display_name, track_name, class, section_count}], bindings: [{guid, display_name, tracks: [{display_name, track_name, class, section_count}]}], master_track_count: int, binding_count: int, binding_track_count: int, total_track_count: int, total_section_count: int, distinct_class_count: int, class_breakdown: [{class, count}] } -- class_breakdown counts every listed track by class, most frequent first.
get_timeline_info¶
Read-only
Reads the timeline summary of a Level Sequence asset (first asset-name match under /Game); needs no open Sequencer and changes nothing. Returns asset_path, start_frame and end_frame in ticks (the playback range), duration in seconds, tick_resolution and display_rate each with numerator and denominator, and track, binding, possessable and spawnable counts. master_track_count counts the root tracks, the camera cut track included, as get_sequence_tracks lists them.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name of the Level Sequence, not its path (e.g. "LS_Intro"); the first match under /Game is used |
Returns: { sequence_name: string, asset_path: string, start_frame: int, end_frame: int, duration: number, tick_resolution: number, tick_resolution_numerator: int, tick_resolution_denominator: int, display_rate: number, display_rate_numerator: int, display_rate_denominator: int, master_track_count: int, binding_count: int, possessable_count: int, spawnable_count: int } -- start_frame/end_frame are tick-resolution frames, not display frames; tick_resolution is the rate set_sequence_frame_rate changes together with display_rate.
move_keyframe¶
Destructive Idempotent
Move one key of a channel of one section on an object-binding track of a Level Sequence to new_frame, keeping its value, interpolation and tangents, in one undo step, then save the sequence. The key is found by index, or by frame within tolerance; channel_type (double, float or bool) and channel_index pick the channel, and the section is resolved like get_section_info. Another key already at new_frame is removed, so a repeat call is idempotent. A key already alone at new_frame changes and saves nothing (changed false, saved false), with moved false. A missing key or channel is an error before anything changes. Remove a key: remove_keyframe; list keys: get_channel_keyframes.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the target Level Sequence. |
new_frame |
integer | yes | Destination frame number for the key. |
sequence_name |
string | no | Alias for sequence_path. |
binding_guid |
string | no | GUID of the binding whose section to edit. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional class filter (see set_section_properties) selecting the track on the binding. |
track_index |
integer | no | Index into the binding's tracks (default 0; used when track_type omitted). Without binding_guid it indexes the root tracks. |
section_index |
integer | no | Index of the section on the resolved track (default 0). |
channel_type |
string | no | Channel value kind: "double" (default) | "float" | "bool". Aliases transform, scalar, color, boolean and visibility are accepted too. |
channel_index |
integer | no | Index of the channel within its proxy view (default 0). |
index |
integer | no | Index of the key to move (mutually exclusive with frame). |
frame |
integer | no | Frame of the key to move (resolved via FindKey; provide index OR frame). |
tolerance |
integer | no | Optional FindKey frame tolerance when locating by frame (default 0). |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, channel_index: int, channel_type: string, old_frame: int, new_frame: int, key_index: int, moved: bool, changed: bool, saved: bool, save_error?: string, note?: string }
move_track_to_folder¶
Destructive Idempotent
Moves one root (master) track, picked by class, or one object binding, picked by GUID, into an existing Sequencer outliner folder of a Level Sequence, taking it out of any other folder, in one undo step, then saves the sequence; success requires the save. Only the outliner grouping changes: sections, keys and playback stay as they were. Idempotent: a track or binding already in that folder succeeds with already_present true and saved false (nothing is written). Refused with nothing changed when the folder is missing (create it with add_sequence_folder), the GUID is not a binding of the sequence, no track or several tracks of that class match (pass track_name), or both or neither of track_class and binding_guid are given. Check the result with get_sequence_folders; level actors go in folders with set_actor_folder instead.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game object path (e.g. "/Game/Cinematics/Intro.Intro") or bare asset name ("Intro") of the Level Sequence; a bare name, or a path that does not load, resolves to the first Level Sequence under /Game with that asset name. |
folder_name |
string | yes | Name of the destination folder, as get_sequence_folders lists it; searched depth-first through all folders, the first with that name wins. |
sequence_name |
string | no | Alias for sequence_path, read when sequence_path is absent or empty; same formats. |
track_class |
string | no | Class name of the root track to move, without the U prefix, case-insensitive (e.g. "MovieSceneCameraCutTrack", "MovieSceneAudioTrack"; get_sequence_tracks lists each root track's class). Mutually exclusive with binding_guid. |
track_name |
string | no | Optional track name (as get_sequence_tracks lists it) to pick one when several root tracks share the class. |
binding_guid |
string | no | GUID of an object binding to move with all its tracks, as get_sequence_bindings returns it. Mutually exclusive with track_class. |
Returns: { sequence_path: string, folder_name: string, track_class: string, track_name: string, binding_guid: string, moved: bool, already_present: bool, saved: bool, save_error?: string }
pause_level_sequence_runtime¶
Destructive
Pauses, at its current position, the runtime ULevelSequencePlayer whose player_key play_level_sequence_runtime returned. Players live in the PIE or game world and stop resolving once it ends. Returns player_key, paused, playing and current_time in seconds; read it later with get_level_sequence_status_runtime. Inverse: resume_level_sequence_runtime.
| Parameter | Type | Required | Description |
|---|---|---|---|
player_key |
string | yes | Player key returned from play_level_sequence_runtime |
Returns: { player_key: string, paused: bool, playing: bool, current_time: number }
pause_timeline¶
Destructive
Pause the editor Sequencer's preview playback on a Level Sequence found by asset name under /Game, first opening that sequence in the Sequencer when another one (or none) is shown; the playhead stays where it is. Editor preview only: to pause a sequence playing in PIE or a game use pause_level_sequence_runtime. Changes no asset; pausing a sequence that is not playing does nothing and still succeeds. playing and paused are read right after the call (paused is simply not playing). A sequence that is not found, or no Sequencer that can show it, is an error. Start again with play_timeline; move the playhead with set_timeline_time.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name of the Level Sequence, not its path, e.g. "LS_Intro" (case-insensitive; the first match under /Game is used), as get_level_sequences returns it (sequences[].name). |
Returns: { sequence_name: string, playing: bool, paused: bool }
play_level_sequence_runtime¶
Additive
Spawn an ALevelSequenceActor with a ULevelSequencePlayer for a Level Sequence in a running PIE or game world, start it with default playback settings, and return the player_key the other runtime tools take. Every call makes a new player and actor with its own key, even for a sequence already playing; nothing in the editor level or on disk changes. No PIE or game world, a world selector naming the editor world, or no sequence of that name under /Game is an error and nothing is spawned. The key stops resolving when PIE ends. Then: pause_level_sequence_runtime, set_level_sequence_time_runtime, get_level_sequence_status_runtime, and stop_level_sequence_runtime to release the player and destroy its actor; to scrub in the editor without PIE, play_timeline or set_timeline_time.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name of the Level Sequence, not its path, e.g. "LS_Intro"; matched case-insensitively, and the first match under /Game is used. |
world |
string | no | Optional world selector: absent/'pie' (default: PlayWorld, else the first PIE context) | 'server' | 'client' | 'pie:N' | 'game' (alias of 'pie'). Runtime playback needs a PIE/Game world (an editor world has no movie-scene tick manager and would assert), so an editor world is refused here. |
Returns: { sequence_name: string, player_key: string, playing: bool, current_time: number, world: string, world_name: string|null, world_package: string|null, world_type: string|null, net_mode: string|null, pie_instance: number }
play_timeline¶
Additive Idempotent
Starts playback in the editor's Sequencer on a Level Sequence found by asset name under /Game, first opening it there when it is not the sequence shown. Editor preview only, no PIE or game player (use play_level_sequence_runtime for that). Returns at once and changes no asset; calling it while playing keeps playing. playing is read right after the call. Errors when the sequence is missing or no Sequencer can show it. Pause with pause_timeline; move the playhead with set_timeline_time.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target level sequence |
Returns: { sequence_name: string, playing: bool }
remove_keyframe¶
Destructive
Delete one key from one channel of a section of a Level Sequence, found by its index or by its frame. Read the keys first with get_channel_keyframes, which takes the same locator and lists each key's index, frame and value; to move a key use move_keyframe, to copy one duplicate_keyframe, to change its value or tangents set_binding_channel_keyframe_interpolation, and to drop the whole section remove_section. The section is found like set_section_properties: binding_guid with track_type or track_index and section_index, or no binding for a root track; channel_type and channel_index pick the channel (transform location x, y, z are double channels 0-2, rotation 3-5, scale 6-8). A key that does not exist (index out of range, or no key within tolerance of frame) is an error and nothing changes. Not idempotent: repeating a call with the same index removes the key that took its place. One undo step, then the sequence is saved; a failed save answers success false with the change kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the target Level Sequence. |
sequence_name |
string | no | Alias for sequence_path. |
binding_guid |
string | no | GUID of the binding whose section to edit. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional class filter (see set_section_properties) selecting the track on the binding. |
track_index |
integer | no | Index into the binding's tracks (default 0; used when track_type omitted). Without binding_guid it indexes the root tracks. |
section_index |
integer | no | Index of the section on the resolved track (default 0). |
channel_type |
string | no | Channel value kind: "double" (default) | "float" | "bool". Aliases transform, scalar, color, boolean and visibility are accepted too. |
channel_index |
integer | no | Index of the channel within its proxy view (default 0). |
index |
integer | no | Index of the key to remove (mutually exclusive with frame). |
frame |
integer | no | Frame of the key to remove (resolved via FindKey; provide index OR frame). |
tolerance |
integer | no | Optional FindKey frame tolerance when locating by frame (default 0). |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, channel_type: string, channel_index: int, removed_frame: int, key_index: int, removed: bool, key_count_after: int, saved: bool, save_error?: string }
remove_marked_frame¶
Destructive
Removes one user marked frame from a Level Sequence, by index, frame, or label -- or, with all=true, every marked frame -- inside an undo transaction, and saves the sequence; success requires the save. A selector that matches no mark, or all=true on a sequence without marks, succeeds with already_removed true and saved false (nothing is written).
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
index |
number | no | Optional mark index to delete. Takes precedence over frame/label. |
frame |
number | no | Optional tick frame number to resolve the mark to delete (FindMarkedFrameByFrameNumber). |
label |
string | no | Optional label to resolve the mark to delete (FindMarkedFrameByLabel). |
all |
boolean | no | Optional bool (default false): delete EVERY marked frame (DeleteMarkedFrames) instead of one; index, frame and label are then refused. |
Returns: { sequence_name: string, removed_index: int, removed_count: int, already_removed: bool, already_empty?: bool, marked_frame_count: int, saved: bool, save_error?: string } -- removed_index is -1 with all=true or when nothing matched; already_empty only with all=true.
remove_section¶
Destructive
Deletes one section, by index, from a track of a Level Sequence in one undo step, then saves the sequence; success requires the save. The section is resolved like get_section_info: with binding_guid, a track of that object binding; without it, a root track (shot, camera cut, audio, event, sub-sequence, fade). track_type picks the first track of that kind, else track_index; section_index picks the section. A missing sequence, binding, track or section index is an error and nothing changes, and so is a track_type it does not know, so a deletion never falls back to another track; removed is read back from the track. The track itself stays, even when left empty: remove_sequence_track deletes a whole track, remove_keyframe a single key. A repeat call deletes whatever section now sits at that index, so re-read indexes first with get_sequence_tracks or get_section_info. Inverse of add_audio_section, add_shot_section, add_event_track_section and add_camera_cut.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game object path (e.g. "/Game/Cinematics/Intro.Intro") or bare asset name ("Intro") of the Level Sequence; a bare name, or a path that does not load, resolves to the first Level Sequence under /Game with that asset name. |
sequence_name |
string | no | Alias for sequence_path, read when sequence_path is absent or empty; same formats. |
binding_guid |
string | no | GUID of the binding whose section to remove, as get_sequence_bindings returns it. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional track kind, case-insensitive; the first track of exactly that kind wins, else the first subclass: transform, float, bool, vector, color, visibility, audio, event, fade, skeletalanimation, sub, cameracut, shot, slomo, property, attach. An unrecognised value is an error and nothing is removed; omit it to pick by track_index. |
track_index |
integer | no | 0-based index into the binding's tracks, or into the root tracks without binding_guid, in get_sequence_tracks order (default 0); used when track_type is omitted. |
section_index |
integer | no | 0-based index of the section to delete on the resolved track (default 0); out of range is an error. |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, section_index: int, track_type: string, track_index: int, removed: bool, remaining_sections: int, saved: bool, save_error?: string }
remove_sequence_binding¶
Destructive
Remove a spawnable or possessable binding, found by GUID, from a Level Sequence named by asset name under /Game, then save the sequence; a failed save returns success false. Fails when the GUID is not a spawnable or possessable of the sequence. Returns removed_as; get GUIDs from get_sequence_bindings.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name (not a path) of the Level Sequence, e.g. "LS_Intro"; the first match under /Game is used, ignoring case. |
binding_guid |
string | yes | GUID of the binding to remove, as get_sequence_bindings returns it. |
Returns: { sequence_name: string, binding_guid: string, removed: bool, removed_as: string, saved: bool, save_error?: string }
remove_sequence_folder¶
Destructive Idempotent
Remove a Sequencer outliner folder (root, or a named child of parent_folder) from a Level Sequence's movie scene, inside an undo transaction, and save the sequence; success requires the save. Inverse of add_sequence_folder; idempotent by name: an absent folder succeeds with already_absent true and saved false (nothing is written).
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path OR bare asset name of the target Level Sequence. |
folder_name |
string | yes | Name of the folder to remove. |
sequence_name |
string | no | Alias for sequence_path. |
parent_folder |
string | no | Optional name of the parent folder (searched recursively); if given, the child folder named folder_name is removed from it instead of a root folder. |
Returns: { sequence_path: string, folder_name: string, parent_folder: string, removed: bool, already_absent: bool, root_folder_count: int, saved: bool, save_error?: string }
remove_sequence_track¶
Destructive
Delete one track of a Level Sequence, with its sections, in one undo step, then save the sequence. The track is the first whose track name or class short name matches track_name (case-insensitive), narrowed by track_class when given. Without binding_guid it is searched among the root tracks, the camera cut track included (track_name "MovieSceneCameraCutTrack", "CameraCut" or "Camera Cuts"); with binding_guid, among that binding's tracks -- the property, transform, skeletal-animation, attach and material tracks add_property_track, add_transform_track_to_binding, add_skeletal_animation_track, add_attach_track and add_component_material_track put there -- also matched by the editor display name. The binding itself stays (remove_sequence_binding removes it). No match, a bad GUID or a binding the sequence does not have is an error and nothing changes. Read the tracks first: get_sequence_tracks; one section only: remove_section.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path of the Level Sequence. |
track_name |
string | yes | Track name OR class short name of the track to remove (get_sequence_tracks gives both); with binding_guid the display name matches too. |
sequence_name |
string | no | Alias for sequence_path. |
track_class |
string | no | Optional exact class filter (e.g. "MovieSceneFadeTrack") to disambiguate. |
binding_guid |
string | no | Optional GUID of the object binding whose track to remove (get_sequence_tracks lists the bindings); omit it for a root track. |
Returns: { sequence_path: string, track_name: string, track_class: string, binding_guid?: string, sections_removed: int, removed: bool, saved: bool, save_error?: string }
resume_level_sequence_runtime¶
Destructive
Resume, from where it stopped, the runtime ULevelSequencePlayer whose player_key play_level_sequence_runtime returned, after pause_level_sequence_runtime (ULevelSequencePlayer::Play on the same player; play_level_sequence_runtime would make a new player and actor instead). A player already playing is an honest no-op (resumed=false, a note). A key that is unknown, released by stop_level_sequence_runtime or gone with its PIE session is an error. Returns playing and paused read back after the call and current_time in seconds; runtime state only, nothing saved. Read it later with get_level_sequence_status_runtime.
| Parameter | Type | Required | Description |
|---|---|---|---|
player_key |
string | yes | Player key returned from play_level_sequence_runtime |
Returns: { player_key: string, resumed: bool, playing: bool, paused: bool, current_time: number, note?: string }
set_attach_section_rules¶
Destructive Idempotent
Set the attach and detach transform rules of one 3D-attach section on an object-binding track of a Level Sequence (sections add_attach_track creates), in one undo step, then save the sequence. The six rules (location, rotation and scale, on attach and on detach) say how the attachee keeps its transform when the attachment begins or ends. Only the rules you pass change; all are parsed before anything is written, so an invalid name, or no rule at all, is an error with nothing changed. applied_count counts the rules passed and all six are read back. Rules that are already set that way change and save nothing (changed false, saved false). The section is resolved like get_section_info. Inspect: get_section_info; create: add_attach_track.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence (or sequence_path). |
sequence_path |
string | no | Asset path of the target Level Sequence (alias for sequence_name). |
binding_guid |
string | no | GUID of the attachee binding that owns the attach track. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
track_index |
integer | no | Optional index into the binding's tracks (default 0). Without binding_guid it indexes the root tracks. |
track_type |
string | no | Optional class filter to pick the track ("transform"|"float"|"bool"|"vector"|"color"|"visibility"|"audio"|"event"|"fade"|"skeletalanimation"|"subsequence"|"cameracut"|"property"; 3dtransform, scalar and boolean are accepted too): the first track of that kind on the binding; omitted or unrecognised, track_index picks the track. |
section_index |
integer | no | Optional index of the section on the track (default 0). |
attachment_location_rule |
string | no | Optional EAttachmentRule: KeepRelative | KeepWorld | SnapToTarget. |
attachment_rotation_rule |
string | no | Optional EAttachmentRule: KeepRelative | KeepWorld | SnapToTarget. |
attachment_scale_rule |
string | no | Optional EAttachmentRule: KeepRelative | KeepWorld | SnapToTarget. |
detachment_location_rule |
string | no | Optional EDetachmentRule: KeepRelative | KeepWorld. |
detachment_rotation_rule |
string | no | Optional EDetachmentRule: KeepRelative | KeepWorld. |
detachment_scale_rule |
string | no | Optional EDetachmentRule: KeepRelative | KeepWorld. |
Returns: { sequence_path: string, attach_rules: object, applied_count: int, applied: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_audio_section_properties¶
Destructive Idempotent
Set playback properties of one section (section_index) on a root audio track (audio_track_index) of a Level Sequence, in one undo step, then save the sequence: sound, looping, play until finished (UE 5.8), subtitle suppression, attenuation override and asset, volume, pitch and start offset. Use it rather than set_properties: volume and pitch are keyed channels, not plain properties, the start offset is converted to tick-resolution frames, and the section's own setters run (setting a sound re-derives looping). Only fields you pass change; a sound or attenuation path that does not load, or an offset outside the frame range, is an error before anything changes. volume/pitch without time_seconds become one constant key at frame 0; with time_seconds a linear key is ADDED at that time, rounded to a tick, even over an existing key. When nothing changes, nothing is saved and no undo step is left (changed false). Read: get_audio_section_properties; add: add_audio_section.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the Level Sequence that owns the (root) audio track. |
sequence_name |
string | no | Alias for sequence_path. |
audio_track_index |
integer | no | Index of the root audio track, counting root audio tracks only (default 0). |
section_index |
integer | no | Index of the section on the resolved root audio track (default 0). |
sound_path |
string | no | Optional content path of a USoundBase to set as the section's sound. |
looping |
boolean | no | Section looping, through the section's own setter (SetRepeating on UE 5.8, SetLooping on 5.7); omit to leave unchanged. |
play_until_finished |
boolean | no | SetPlayUntilFinished (omit to leave unchanged). Needs UE 5.8. |
suppress_subtitles |
boolean | no | SetSuppressSubtitles (omit to leave unchanged). |
override_attenuation |
boolean | no | SetOverrideAttenuation; must be true for attenuation_path to take effect (omit to leave unchanged). |
attenuation_path |
string | no | Optional content path of a USoundAttenuation to set (only effective when override_attenuation is true). |
volume |
number | no | Optional volume to key on the SoundVolume channel (0..N; 1 = unity gain). |
pitch |
number | no | Optional pitch multiplier to key on the PitchMultiplier channel (1.0 = normal speed). |
time_seconds |
number | no | Optional time in seconds for the volume/pitch keys; omit to set them as constants. |
start_offset_frames |
number | no | Optional start offset in tick-resolution frames (the unit get_audio_section_properties reports), written as-is with fractions truncated; wins over start_offset_seconds. |
start_offset_seconds |
number | no | Optional start offset in seconds, converted to tick-resolution frames and rounded; ignored when start_offset_frames is given. |
Returns: { sequence_path: string, section_class: string, audio_track_index: int, section_index: int, sound: string, sound_set: bool, looping: bool, play_until_finished?: bool (needs UE 5.8), suppress_subtitles: bool, override_attenuation: bool, attenuation: string, attenuation_set: bool, volume?: number, volume_key_count?: int, volume_keys_written?: int, pitch?: number, pitch_key_count?: int, pitch_keys_written?: int, old_start_offset_frames?: int, new_start_offset_frames?: int, new_start_offset_seconds?: number, set: bool, changed: bool, saved: bool, save_error?: string, note?: string } -- the volume/pitch fields only when that value was passed (keys_written 0: the channel already held that constant), the start offset fields only when an offset was passed.
set_binding_channel_keyframe_interpolation¶
Destructive Idempotent
Set the value, interpolation mode, tangent mode and tangents of one key of a double (transform) or float (property) channel of one section on an object-binding track of a Level Sequence, in one undo step, then save the sequence. The key is found by index, or by frame within tolerance; channel_type and channel_index pick the channel, the section is resolved like get_section_info, and bool channels are refused. Only the fields you pass change, and the edit is checked on a copy first: an unknown mode is an error before anything changes, and a key that would stay as it is changes and saves nothing (changed false, saved false). The key is read back. Root float tracks: set_keyframe_interpolation; list keys: get_channel_keyframes.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the target Level Sequence. |
sequence_name |
string | no | Alias for sequence_path. |
binding_guid |
string | no | GUID of the binding whose section to edit. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional class filter (see set_section_properties) selecting the track on the binding. |
track_index |
integer | no | Index into the binding's tracks (default 0; used when track_type omitted). Without binding_guid it indexes the root tracks. |
section_index |
integer | no | Index of the section on the resolved track (default 0). |
channel_type |
string | no | Channel value kind: "double" (default) | "float"; aliases transform, scalar and color are accepted too. ("bool" is rejected -- no interp/tangent.) |
channel_index |
integer | no | Index of the channel within its proxy view (default 0). |
index |
integer | no | Index of the key to edit (mutually exclusive with frame). |
frame |
integer | no | Frame of the key to edit (resolved via FindKey; provide index OR frame). |
tolerance |
integer | no | Optional FindKey frame tolerance when locating by frame (default 0). |
value |
number | no | Optional new key value (leaves unchanged if omitted). |
interp_mode |
string | no | Optional interpolation: "Cubic" | "Linear" | "Constant" (default leaves unchanged). |
tangent_mode |
string | no | Optional tangent mode (Cubic only): "Auto" | "User" | "Break" (default leaves unchanged). |
arrive_tangent |
number | no | Optional arrive tangent value (Cubic). |
leave_tangent |
number | no | Optional leave tangent value (Cubic). |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, channel_index: int, channel_type: string, frame: int, key_index: int, value: number, interp_mode: string, tangent_mode: string, arrive_tangent: number, leave_tangent: number, set: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_keyframe_interpolation¶
Destructive Idempotent
Set the interpolation mode, tangent mode and tangents of one existing key on a float channel of a root (master) track of a Level Sequence found by asset name under /Game, in one undo step, then save the sequence. The track is the first root track whose class name contains track_class, for example Slomo or Fade; its first section is edited, channel_index picks the float channel and frame must be the key's exact tick frame. Only the fields you pass change, and an unknown mode is an error before anything changes. A key that already has those values changes and saves nothing (changed false, saved false). The key is read back. Keys of a binding's tracks: set_binding_channel_keyframe_interpolation.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence |
track_class |
string | yes | Class-name fragment of the master track whose float channel to edit (e.g. "Slomo", "Fade") |
frame |
number | yes | Frame number of the existing key to modify |
interp_mode |
string | no | Optional interpolation: "Cubic" | "Linear" | "Constant" (default leaves unchanged) |
tangent_mode |
string | no | Optional tangent mode (Cubic only): "Auto" | "User" | "Break" (default leaves unchanged) |
channel_index |
number | no | Optional float-channel index on the section (default 0) |
arrive_tangent |
number | no | Optional arrive tangent value (Cubic) |
leave_tangent |
number | no | Optional leave tangent value (Cubic) |
Returns: { sequence_name: string, track_class: string, frame: int, key_found: bool, channel_index: int, interp_mode: string, tangent_mode: string, arrive_tangent: number, leave_tangent: number, changed: bool, saved: bool, save_error?: string, note?: string }
set_level_sequence_time_runtime¶
Destructive Idempotent
Move a runtime Level Sequence player, found by the player_key play_level_sequence_runtime returned, to time seconds with SetPlaybackPosition and the Play update method: the sequence is evaluated from its current position to the new one as playback would, so events in between can fire, rather than jumping. It does not start, pause or stop the player. A negative time, or a key that is unknown, released by stop_level_sequence_runtime or gone with its PIE session, is an error. A time past the end is not refused: actual_time, read back right after, says where the player is, next to requested_time and the player frame_rate. Runtime state only: nothing is saved. Read the state with get_level_sequence_status_runtime; in the editor without PIE, set_timeline_time scrubs a sequence.
| Parameter | Type | Required | Description |
|---|---|---|---|
player_key |
string | yes | Player key returned from play_level_sequence_runtime |
time |
number | yes | Playback time in seconds from the start of the sequence, must be >= 0 |
Returns: { player_key: string, requested_time: number, actual_time: number, frame_rate: number }
set_property_track_keyframe_count¶
Destructive Idempotent
Replace every key of the first section of one property track on a Level Sequence binding (sequence found by asset name under /Game) with key_count keys evenly spaced from the section start to its end, all holding default_value, in one undo step, then save the sequence. Every channel of the section gets the same keys: one channel for a Float, Bool or Visibility track, one per component for a Vector or Color track. key_count 0 clears the keys and 1 keys the section start; keys that would share a frame are merged. Channels that already hold exactly those keys change and save nothing (changed false, saved false). An unsupported property_type, or a missing track or section, is an error. One key at a time: add_keyframe_to_property_track; list keys: get_channel_keyframes.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
binding_guid |
string | yes | GUID of the binding. |
property_type |
string | yes | One of "Float", "Bool", "Vector", "Color", "Visibility". |
key_count |
integer | yes | Target number of keys (>= 0). 0 clears all keys; 1 seeds at section start; >=2 evenly distributes. |
default_value |
number | no | Value to use for every resampled key (default 0). |
Returns: { sequence_name: string, binding_guid: string, property_type: string, key_count: int, default_value: float, keys_written: int, applied: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_section_properties¶
Destructive Idempotent
Change any settings of ONE section of a Level Sequence in one call: active (muted or not), locked, blend type, completion mode, color tint, row index, easing and pre/post roll. The section is addressed as every section tool addresses it (sequence_path; binding_guid for a track of a binding, or none for a root track such as a shot, a camera cut or an audio track; then track_type or track_index, then section_index); pass only the settings to change. Each is validated and applied by its own step -- unlocking first and locking last, so a locked section can be changed and relocked in one call -- and saved; the call stops at the first setting refused (a blend type the track does not support, muting a locked section), with applied listing those already changed. Read it back with get_section_info. set_section_range moves the section in time; set_audio_section_properties sets an audio section's volume and pitch.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | no | Asset path of the Level Sequence |
binding_guid |
string | no | Optional GUID of the binding that owns the track (from get_sequence_tracks); omitted, track_type or track_index pick among the root tracks |
binding_name_or_guid |
string | no | Optional: the binding by display name instead of binding_guid |
sequence_name |
string | no | Optional: the sequence by asset name instead of sequence_path |
track_type |
string | no | Optional track class name (e.g. MovieScene3DTransformTrack) to pick the track |
track_index |
integer | no | Optional index of the track within the binding (default 0) |
section_index |
integer | no | Optional index of the section within the track (default 0) |
active |
boolean | no | Optional: false mutes the section, true unmutes it |
locked |
boolean | no | Optional: lock or unlock the section against edits in Sequencer |
blend_type |
string | no | Optional: Absolute, Additive, Relative or AdditiveFromBase, as the track supports |
completion_mode |
string | no | Optional: KeepState, RestoreState or ProjectDefault |
color |
array | no | Optional color tint [r, g, b] or [r, g, b, a], each 0..1 |
row_index |
integer | no | Optional row of the section within its track |
ease_in_frames |
number | no | Optional manual ease-in length in frames (sets manual easing) |
ease_out_frames |
number | no | Optional manual ease-out length in frames (sets manual easing) |
pre_roll_frames |
number | no | Optional pre-roll length in frames |
post_roll_frames |
number | no | Optional post-roll length in frames |
Returns: { applied: { setting: that setting's reply }, failed?: { label, command, error } (when a setting is refused) }
set_section_range¶
Destructive Idempotent
Sets the frame range of the FIRST section of one track on a Level Sequence binding (sequence found by asset name under /Game), in one undo step, and saves the sequence. track_index picks the track in the binding's track order, or without binding_guid among the root tracks (get_sequence_tracks order, camera cut last); no other section can be targeted, and an unknown binding reads as zero tracks. Frames are tick-resolution frames, rounded; keys are not moved or rescaled. range_set is false when the stored range differs from the request, and a range the section already has changes and saves nothing (changed false, saved false). Read a section's range with get_section_info; for the whole sequence use set_sequence_settings.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the target Level Sequence. |
start_frame |
number | yes | Inclusive start frame (tick resolution). |
end_frame |
number | yes | Exclusive end frame (must be > start_frame). |
binding_guid |
string | no | GUID of the binding. Optional: omit it for a section of a root track (shot, camera cut, audio, event...). |
track_index |
integer | no | Index into the binding's tracks, or into the root tracks without binding_guid (0 = first track, default 0). |
Returns: { sequence_name: string, binding_guid: string, track_index: int, track_class: string, requested_start_frame: int, requested_end_frame: int, applied_start_frame: int, applied_end_frame: int, range_set: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_sequence_frame_rate¶
Destructive Idempotent
Change the frame rate of a Level Sequence: its tick resolution AND its display rate, as create_level_sequence sets them (one tick per frame). Every key, section and range is migrated to the new rate, so nothing moves in time. To change only the display rate, use set_sequence_settings.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Name of the sequence to modify |
frame_rate |
number | yes | New frame rate in fps, must be greater than 0; NTSC rates (23.976, 29.97, 59.94) become N*1000/1001 |
Returns: { sequence_name: string, frame_rate: number, numerator: int, denominator: int, previous_frame_rate: number, frame_rate_set: bool } -- read back from the movie scene
set_sequence_settings¶
Destructive Idempotent
Change any settings of a Level Sequence itself in one call: display rate, playback range (in tick frames), the editor's view and working ranges (in seconds), and the playback-range and marked-frames locks. Pass only the settings to change; each is validated and applied by its own step with its undo step and save, in the order listed here, and the call stops at the first one refused, with applied listing those already changed. The tick resolution is set_sequence_frame_rate, which also moves every key; get_sequence_info reads these back.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Asset path of the Level Sequence (/Game/...) |
display_rate_fps |
number | no | Optional display rate in frames per second, above 0 |
playback_start_frame |
integer | no | Optional inclusive start of the playback range, in tick frames; needs playback_end_frame |
playback_end_frame |
integer | no | Optional exclusive end of the playback range, in tick frames; needs playback_start_frame |
view_start_seconds |
string | no | Optional start of the editor's view range, in seconds; needs view_end_seconds |
view_end_seconds |
string | no | Optional end of the editor's view range, in seconds |
working_start_seconds |
string | no | Optional start of the editor's working range, in seconds; needs working_end_seconds |
working_end_seconds |
string | no | Optional end of the editor's working range, in seconds |
playback_range_locked |
boolean | no | Optional: lock or unlock the playback range in Sequencer |
marked_frames_locked |
boolean | no | Optional: lock or unlock the marked frames in Sequencer |
Returns: { applied: { setting: that setting's reply }, failed?: { label, command, error } (when a setting is refused) }
set_skeletal_animation_section_parameters¶
Destructive Idempotent
Set the playback parameters (FMovieSceneSkeletalAnimationParams) of one skeletal-animation section on an object-binding track of a Level Sequence, in one undo step, then save the sequence. Only the fields you pass are written and the rest keep their values; a call that changes none of them changes and saves nothing (changed false, saved false). The section is section_index on the binding's first track of track_type ("skeletalanimation" picks the skeletal-animation track), or on its track_index-th track when track_type is omitted or unrecognised; a section of another class, a bad GUID or an index out of range is an error. A near-zero play_rate is refused before anything changes; frame offsets are rounded tick-resolution frames. Every field is read back, play_rate null for a non-constant time warp. Add the section with add_skeletal_animation_track; easing: set_section_properties; inspect: get_section_info.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the target Level Sequence. |
sequence_name |
string | no | Alias for sequence_path. |
binding_guid |
string | no | GUID of the binding whose skeletal-animation section to edit. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional class filter: "skeletalanimation" picks the binding's first skeletal-animation track (see set_section_properties for the other kinds); omitted or unrecognised, track_index picks the track. |
track_index |
integer | no | Index into the binding's tracks (default 0; used when track_type is omitted or unrecognised). Without binding_guid it indexes the root tracks. |
section_index |
integer | no | Index of the section on the resolved track (default 0). |
reverse |
boolean | no | bReverse (omit to leave unchanged). |
slot_name |
string | no | SlotName (FName; omit or pass an empty string to leave unchanged). |
start_frame_offset |
number | no | StartFrameOffset in tick frames, rounded (omit to leave unchanged). |
end_frame_offset |
number | no | EndFrameOffset in tick frames, rounded (omit to leave unchanged). |
skip_anim_notifiers |
boolean | no | bSkipAnimNotifiers (omit to leave unchanged). |
force_custom_mode |
boolean | no | bForceCustomMode (omit to leave unchanged). |
play_rate |
number | no | Constant playback rate (double; must be non-zero -- ~0 is a FixedTime warp, not a play rate; omit to leave unchanged). |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, section_index: int, reverse: bool, slot_name: string, start_frame_offset: int, end_frame_offset: int, skip_anim_notifiers: bool, force_custom_mode: bool, play_rate: double|null, set: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_spawn_ownership¶
Destructive Idempotent
Set the spawn ownership (ESpawnOwnership) of a spawnable custom binding in a Level Sequence given as a /Game path or a bare asset name: whether the spawned actor's lifetime is managed by the sequence that spawned it (InnerSequence), by the outermost sequence (RootSequence) or externally once spawned (External). MasterSequence is accepted for RootSequence, and the ESpawnOwnership:: prefix is allowed. Done in one undo step, then the sequence is saved; ownership is read back, and a binding that already has it changes and saves nothing (changed false, saved false). A binding that is not a spawnable custom binding (a possessable, an unknown GUID), an invalid ownership or a missing sequence is an error; a failed save makes success false with saved=false and save_error. Find GUIDs and current ownership with get_sequence_bindings (kind=spawnable); add a spawnable with add_spawnable_to_sequence.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Level Sequence as a /Game path, e.g. "/Game/Cine/LS_Intro", or a bare asset name, e.g. "LS_Intro", whose first match under /Game is used ignoring case; a path that does not load falls back to its asset name. |
binding_guid |
string | yes | GUID of the spawnable binding (from add_spawnable_to_sequence / get_sequence_bindings). |
ownership |
string | yes | One of: InnerSequence | RootSequence | External. MasterSequence is accepted as RootSequence. |
sequence_path |
string | no | Alias for sequence_name, read only when sequence_name is absent or empty; it takes the same /Game path or bare asset name. |
Returns: { sequence_name: string, binding_guid: string, ownership: string, changed: bool, saved: bool, save_error?: string, note?: string }
set_sub_section_parameters¶
Destructive Idempotent
Set the playback parameters of one subsequence or cinematic shot section (a UMovieSceneSubSection on a root track) of a Level Sequence, in one undo step, then save the sequence. track_type shot picks the first cinematic shot track, anything else the first subsequence track, and section_index the section. Only the fields you pass change: the frame offsets in tick frames, rounded, the hierarchical bias, can_loop and a constant time scale; a near-zero time_scale is refused before anything changes. Every field is read back, time_scale null for a non-constant time warp. A request that leaves the parameters as they were changes and saves nothing (changed false, saved false). Add sections with add_subsequence_track or add_shot_section.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the OUTER Level Sequence that owns the sub/shot track. |
sequence_name |
string | no | Alias for sequence_path. |
track_type |
string | no | Optional master-track filter: "subsequence" (default) or "shot" (cinematic shot track). |
section_index |
integer | no | Index of the section on the resolved master track (default 0). |
start_frame_offset |
number | no | StartFrameOffset in tick frames (omit to leave unchanged). |
end_frame_offset |
number | no | EndFrameOffset in tick frames (omit to leave unchanged). |
first_loop_start_frame_offset |
number | no | FirstLoopStartFrameOffset in tick frames; only meaningful when can_loop is true (omit to leave unchanged). |
hierarchical_bias |
integer | no | HierarchicalBias (int; default engine value 100; omit to leave unchanged). |
can_loop |
boolean | no | bCanLoop; gates the loop offsets (omit to leave unchanged). |
time_scale |
number | no | Constant playback time scale (double; must be non-zero -- ~0 is a FixedTime warp, not a play rate; omit to leave unchanged). |
Returns: { sequence_path: string, section_class: string, section_index: int, start_frame_offset: int, end_frame_offset: int, first_loop_start_frame_offset: int, hierarchical_bias: int, can_loop: bool, time_scale: double|null, set: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_timeline_time¶
Destructive Idempotent
Move the editor Sequencer's playhead on a Level Sequence, found by asset name under /Game, to a time in seconds (a jump: nothing plays in between), first opening that sequence in the Sequencer when another one (or none) is shown. Editor preview only: to seek a sequence playing in PIE or a game use set_level_sequence_time_runtime. Changes no asset: the actors the sequence binds are only previewed at that time, as the Sequencer does. The same time again lands on the same frame. actual_frame is where the playhead landed, in display-rate frames, read back after the jump; time_set only says the jump was issued. A negative time, a sequence that is not found, or no Sequencer that can show it is an error and nothing moves. See the sequence length first with get_timeline_info; play or pause with play_timeline and pause_timeline.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_name |
string | yes | Asset name of the Level Sequence, not its path, e.g. "LS_Intro" (case-insensitive; the first match under /Game is used), as get_level_sequences returns it (sequences[].name). |
time |
number | yes | Playhead position in seconds from the sequence start, e.g. 2.5; must be 0 or more (a time past the end is not refused). |
Returns: { sequence_name: string, requested_time: number, actual_frame: int, time_set: bool }
set_transform_section_mask¶
Destructive Idempotent
Set which channels of one 3D transform section on an object-binding track of a Level Sequence are animated (UMovieScene3DTransformSection::SetMask), in one undo step, then save the sequence. channels names the channels to enable, as an array or a comma-separated string; every other channel is masked off, and an unknown token is an error before anything changes. Existing keys are kept: the mask only filters evaluation and display. The section is resolved like get_section_info; one that is not a 3D transform section is an error. The mask is read back as channels and channel_mask, and a section that already has that mask changes and saves nothing (changed false, saved false). Quaternion rotation: set_transform_section_quaternion_interpolation.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the target Level Sequence. |
channels |
array|string | yes | Channels to ENABLE: a JSON array (e.g. ["TranslationX","Rotation"]) OR a comma-separated string. Tokens: TranslationX/Y/Z, Translation, RotationX/Y/Z (Roll/Pitch/Yaw), Rotation, ScaleX/Y/Z, Scale, Weight, AllTransform, All, None. |
sequence_name |
string | no | Alias for sequence_path. |
binding_guid |
string | no | GUID of the binding whose transform section to edit. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional class filter (default resolves the transform track; see set_section_properties). |
track_index |
integer | no | Index into the binding's tracks (default 0). Without binding_guid it indexes the root tracks. |
section_index |
integer | no | Index of the section on the resolved track (default 0). |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, section_index: int, channels: string[], channel_mask: int, set: bool, changed: bool, saved: bool, note: string, save_error?: string }
set_transform_section_quaternion_interpolation¶
Destructive Idempotent
Turns quaternion (slerp) rotation interpolation on or off for one 3D transform section of a Level Sequence binding, in one undo step, and saves the sequence; keys are kept. The section is section_index on the binding's first track of track_type, or on its track_index-th track when track_type is omitted or unrecognised; a section that is not a 3D transform section is an error, and one already in the requested state changes and saves nothing (changed false, saved false). For the section's blend type use set_section_properties; to enable or disable channels use set_transform_section_mask.
| Parameter | Type | Required | Description |
|---|---|---|---|
sequence_path |
string | yes | Full /Game path OR bare asset name of the target Level Sequence. |
use_quaternion |
boolean | yes | Desired quaternion-interpolation state. |
sequence_name |
string | no | Alias for sequence_path. |
binding_guid |
string | no | GUID of the binding whose transform section to edit. Omit it (and binding_name_or_guid) for a section of a ROOT track -- shot, camera cut, audio, event, sub-sequence, fade: track_type or track_index then pick among the root tracks in get_sequence_tracks order, camera cut last. |
track_type |
string | no | Optional track kind, e.g. "transform": picks the binding's first track of that kind. Omitted or unrecognised, track_index picks the track instead. |
track_index |
integer | no | Index into the binding's tracks (default 0). Without binding_guid it indexes the root tracks. |
section_index |
integer | no | Index of the section on the resolved track (default 0). |
binding_name_or_guid |
string | no | Alias for binding_guid, read only when binding_guid is absent; it must also be a GUID string, a bound object's name is not resolved. |
Returns: { sequence_path: string, section_index: int, use_quaternion_interpolation: bool, set: bool, changed: bool, saved: bool, save_error?: string, note?: string }
stop_level_sequence_runtime¶
Destructive
Stops the runtime ULevelSequencePlayer whose player_key play_level_sequence_runtime returned, forgets the key and destroys the ALevelSequenceActor hosting it, so the key is invalid afterwards. Returns player_key, stopped (true when a playing or paused player was stopped, read back after Stop) and playing as read just after Stop. A player that had already stopped (it reached its end, say) is still released: success with stopped false and a note. A player still playing or paused after Stop is an error, and the key and its actor are kept. Use pause_level_sequence_runtime to keep the player.
| Parameter | Type | Required | Description |
|---|---|---|---|
player_key |
string | yes | Player key returned from play_level_sequence_runtime |
Returns: { player_key: string, stopped: bool, playing: bool, note?: string }