add_audio_section
Adds or reuses a root audio track on a Level Sequence, optionally placing a sound section at the playback range start when a sound path is provided.
Instructions
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.
Returns: { sequence_name: string, track_class: string, audio_track: string, audio_track_index: int (the index set_audio_track_volume / set_audio_track_pitch take), track_added: bool, sound_loaded: bool, section_added: bool, section_count: int, sound_path: string, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sound_path | No | Optional content path of a USoundBase, e.g. "/Game/Audio/MySound". | |
| sequence_name | Yes | Name of the target Level Sequence. |