Hi @fabiof17 thanks for the replaying.
Yes, I want to set the frame-rate, frame-range, projectPath, format/resolution, for the entire project.
I tried doing that, but it gives NatronGui.GuiApp
instance that only has a partial set of the methods. For example, it doesn’t have the methos projectPath()
from NatronGui import *
app = natron.getGuiInstance(0)
print app, sorted(dir(app))
#Result:
<NatronGui.GuiApp object at 0x7fb0817660e0>
[‘addFormat’, ‘addProjectLayer’, ‘clearSelection’, ‘closeProject’, ‘createModalDialog’, ‘createNode’, ‘createReader’, ‘createWriter’, ‘deselectNode’, ‘getActiveTabWidget’, ‘getActiveViewer’, ‘getAppID’, ‘getChildren’, ‘getDirectoryDialog’, ‘getFilenameDialog’, ‘getNode’, ‘getProjectParam’, ‘getRGBColorDialog’, ‘getSelectedNodes’, ‘getSequenceDialog’, ‘getTabWidget’, ‘getUserPanel’, ‘getViewNames’, ‘getViewer’, ‘loadProject’, ‘moveTab’, ‘newProject’, ‘registerPythonPanel’, ‘render’, ‘renderBlocking’, ‘resetProject’, ‘saveFilenameDialog’, ‘saveProject’, ‘saveProjectAs’, ‘saveSequenceDialog’, ‘saveTempProject’, ‘selectAllNodes’, ‘selectNode’, ‘setSelection’, ‘timelineGetLeftBound’, ‘timelineGetRightBound’, ‘timelineGetTime’, ‘unregisterPythonPanel’, ‘writeToScriptEditor’]
Where the NatronGui.GuiApp
instance the I can access from the python interactive shell has more methods. Like the frameRate, frameRange, projectPath...
Which I need to query and set so project default values.
print app1, sorted(dir(app1))
#Result:
<NatronGui.GuiApp object at 0x7fb083a99f38>
[‘Info’, ‘LUT’, ‘Layers’, ‘Python’, ‘Settings’, ‘Viewer1’, ‘Views’,‘addFormat’, ‘addProjectLayer’, ‘afterNodeCreated’, ‘afterProjectLoad’, ‘autoPreviews’, ‘beforeNodeRemoval’, ‘beforeProjectClose’, ‘beforeProjectSave’, ‘clearSelection’, ‘closeProject’, ‘comments’, ‘createModalDialog’, ‘createNode’, ‘createReader’, ‘createWriter’, ‘creationDate’, ‘defaultColorSpace16u’, ‘defaultColorSpace32f’, ‘defaultColorSpace8u’, ‘defaultLayers’, ‘deselectNode’, ‘frameRange’, ‘frameRate’, ‘getActiveTabWidget’, ‘getActiveViewer’, ‘getAppID’, ‘getChildren’, ‘getDirectoryDialog’, ‘getFilenameDialog’, ‘getNode’, ‘getProjectParam’, ‘getRGBColorDialog’, ‘getSelectedNodes’, ‘getSequenceDialog’, ‘getTabWidget’, ‘getUserPanel’, ‘getViewNames’, ‘getViewer’, ‘gpuRendering’, ‘lastAuthor’, ‘lastSaveDate’, ‘loadProject’, ‘lockRange’, ‘moveTab’, ‘newFormat’, ‘newProject’, ‘originalAuthor’, ‘outputFormat’, ‘pane1’, ‘pane2’, ‘pane3’, ‘projectName’, ‘projectPath’, ‘projectPaths’, ‘registerPythonPanel’, ‘render’, ‘renderBlocking’, ‘resetProject’, ‘saveFilenameDialog’, ‘saveProject’, ‘saveProjectAs’, ‘saveSequenceDialog’, ‘saveTempProject’, ‘selectAllNodes’, ‘selectNode’, ‘setSelection’, ‘setupForStereo’, ‘softwareVersion’, ‘timelineGetLeftBound’, ‘timelineGetRightBound’, ‘timelineGetTime’, ‘unregisterPythonPanel’, ‘viewsList’, ‘writeToScriptEditor’]