Controlling the viewer
Natron exposes all functionalities available to the user in the Python API via the PyViewer class.
To retrieve a PyViewer, use the auto-declared variable:
app.pane2.Viewer1
or use the following function getViewer(scriptName)
,
passing it the script-name of a viewer node.
You can then control the player, the displayed channels, the current view, the current compositing operator, which are the input A and B, the frame-range, the proxy level and various other stuff.