add_shot_section
Add a cinematic shot section to a Level Sequence's shot track and save it, creating the missing track or inner shot sequence as required.
Instructions
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 _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.
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 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Section duration in tick frames (default 150). | |
| start_frame | No | Inclusive start frame for the shot section (default 0). | |
| sequence_name | No | Alias for sequence_path. | |
| sequence_path | No | Full /Game path OR bare asset name of the target Level Sequence. | |
| shot_sequence_path | No | Optional content path of the inner shot Level Sequence. If omitted, an inner shot Level Sequence is created and persisted. |