How natrongithub/natron works
Natron is a node-based video compositor. Users build and animate a compositing graph, preview its output, and render frames interactively, in batch, or headlessly. The graph highlights project/node state, rendering and caching, media I/O, plugin hosting, and the GUI and scripting surfaces. README-documented capabilities are included alongside source-indexed core modules; many runtime call paths were not sampled, so links not directly evidenced are omitted.
Main entry points: OutputSchedulerThread.cpp Render pipeline · Node.h Node graph model · Project.h Project state · ReadNode.cpp Media input
Components 24
Application and projects
- Application manager
Engine/AppManager.h - Project state
Engine/Project.h - Application settings
Engine/Settings.h
Compositing and media
- Node graph model
Engine/Node.h - Parameters and animation
Engine/Knob.h - Timeline
Engine/TimeLine.cpp - Media input
Engine/ReadNode.cpp - Media output
Engine/WriteNode.cpp - Roto and paint
Engine/RotoContext.cpp - Tracking
Engine/TrackerContext.cpp
Rendering and viewing
- Render pipeline
Engine/OutputSchedulerThread.cpp - RAM and disk cache
Engine/Cache.cpp - Image processing
Engine/Image.cpp - Interactive viewer
Engine/ViewerInstance.cpp
User interaction
- GUI application manager
Gui/GuiApplicationManager.cpp - Main GUI
Gui/Gui.h - Parameter controls
Gui/KnobGuiFactory.h - Documentation interface
Gui/DocumentationManager.cpp
Plugins and scripting
- OpenFX host
Engine/OfxHost.cpp - Python integration
Engine/PyAppInstance.cpp
Other components
- Compositor user
- OpenFX plugins
- Image and video formats
- Script or batch user
Connections 26
- Compositor user → GUI application manager: opens compositor
- GUI application manager → Main GUI: provides interface
Gui/GuiApplicationManager.cpp - Compositor user → Project state: creates graph
- Project state → Node graph model: contains graph state
Engine/Project.h - Node graph model → Parameters and animation: exposes parameters
Engine/Node.h - Compositor user → Parameter controls: edits parameters
- Parameter controls → Parameters and animation: edits controls
- Compositor user → Timeline: edits keyframes
- Project state → Media input: loads media
- Media input → Node graph model: feeds graph
- Roto and paint → Node graph model: adds paint effects
- Tracking → Node graph model: adds tracking data
- Compositor user → Render pipeline: requests render
- Script or batch user → Render pipeline: batch renders
- Render pipeline → Node graph model: evaluates graph
- Render pipeline → Image processing: processes frames
- Render pipeline → RAM and disk cache: uses frame cache
- Render pipeline → Media output: renders output
- Render pipeline → Interactive viewer: updates preview
- Interactive viewer → Compositor user: shows preview
- Media output → Image and video formats: writes formats
- Media input → Image and video formats: reads formats
- Node graph model → OpenFX host: hosts effects
- OpenFX host → OpenFX plugins: loads plugins
- Compositor user → Python integration: scripts application
- GUI application manager → Documentation interface: starts documentation
Gui/GuiApplicationManager.cpp