Scenes provide a powerful way to organize complex video projects. Each scene has its own timeline with independent tracks and elements, plus bookmarks for marking important moments.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/OpenCut-app/OpenCut/llms.txt
Use this file to discover all available pages before exploring further.
What is a scene?
A scene is a self-contained timeline within your project. Think of scenes as chapters in your video or different takes you can switch between.apps/web/src/types/timeline.ts
Scene structure
Each scene maintains its own timeline state independently. Changes in one scene don’t affect others.
ScenesManager API
Creating and managing scenes
Scene switching implementation
Here’s how scene switching is implemented:apps/web/src/core/managers/scenes-manager.ts
Bookmarks
Bookmarks let you mark important moments on the timeline with optional notes and colors.apps/web/src/types/timeline.ts
Working with bookmarks
Scene lifecycle
Understanding how scenes are initialized and managed:apps/web/src/core/managers/scenes-manager.ts
Scene commands
All scene operations are implemented using the command pattern for undo/redo support:CreateSceneCommand
Creates a new scene and adds it to the project.
DeleteSceneCommand
Removes a scene (with validation to prevent deleting main scene).
RenameSceneCommand
Changes the name of an existing scene.
ToggleBookmarkCommand
Adds or removes a bookmark at a specific time.
UpdateBookmarkCommand
Modifies bookmark properties like note, color, or duration.
MoveBookmarkCommand
Moves a bookmark from one time to another.
RemoveBookmarkCommand
Deletes a bookmark at a specific time.
Timeline integration
The TimelineManager retrieves its track data from the active scene:apps/web/src/core/managers/timeline-manager.ts
- Timeline operations automatically update the active scene
- Switching scenes instantly changes the visible timeline
- Each scene’s timeline state is preserved independently
Use cases for scenes
Multiple takes
Multiple takes
Create a scene for each take of the same content. Switch between them to compare and choose the best version.
Project chapters
Project chapters
Organize long videos into logical chapters. Each scene represents a major section of your video.
A/B variations
A/B variations
Create alternative versions of the same content with different edits, effects, or timing.
Template variations
Template variations
Build multiple variations of a video template with different content but similar structure.
Best practices
Name scenes clearly
Use descriptive names like “Intro”, “Take 3”, or “Short Version” instead of generic names.
Use bookmarks liberally
Mark important moments, transitions, or areas that need review with bookmarks.
Keep one main scene
Designate your primary edit as the main scene for easy identification.
Clean up unused scenes
Delete scenes you’re no longer using to keep your project organized.
Related concepts
- EditorCore - Understanding the singleton architecture
- Timeline - Working with tracks and elements within scenes
- Commands - Scene operations use commands for undo/redo
- Actions - User-triggered scene operations