Called whenever a batch setup is successfully loaded.
def batchSetupLoaded( setupPath ): pass
Called whenever a batch setup is successfully saved.
def batchSetupSaved( setupPath ):
pass
This hook is called before the Write File node starts rendering and writing files to disk.
def batchExportBegin( info, userData ): pass
| Key | Description | Data Type |
|---|---|---|
| nodeName | Name of the export node | String |
| exportPath | Editable. Export path as entered in the export node from within application. Can be modified by the hook to change the written file's destination. | String |
| namePattern | List of optional naming tokens as entered in the application UI. | String |
| resolvedPath | Full path to the first frame that will be exported, with all the tokens resolved. | String |
| firstFrame | Frame number of the first frame that will be exported. | Integer |
| lastFrame | Frame number of the last frame that will be exported. | Integer |
| versionNumber | Current version number of this export.
Zero there is no version. |
Integer |
| openClipNamePattern | List of the tokens used in the UI to name the Open Clip XML that will be created by the export node.
Only available if Clip Version (versioning) is enabled in the UI. |
String |
| openClipResolvedPath | Full path to the open clip that will be created, with all the tokens resolved.
Only available if Clip Version (versioning) is enabled in the UI. |
String |
| setupNamePattern | List of the tokens used in the UI to name the batch setup that will be created by the export node.
Only available if Clip Version (versioning) is enabled in the UI. |
String |
| setupResolvedPath | Full path to the batch setup that will be created, with all the tokens resolved.
Only available if Clip Version (versioning) is enabled in the UI. |
String |
This hook is called whenever a Write File node in Batch finished its render. Use it, amongst other things, to publish renders to shot tracking systems, or to perform post-processing on successful renders.
def batchExportEnd( info, userData ): pass
| Key | Description | Data Type |
|---|---|---|
| nodeName | Name of the export node. | String |
| exportPath | Export path either entered in the export node from within application, or edited by batchExportBegin. | String |
| namePattern | List of the naming tokens as entered in the application UI. | String |
| resolvedPath | Full path to the first frame that was exported, with all the tokens resolved. | String |
| firstFrame | Frame number of the first frame that was exported. | Integer |
| lastFrame | Frame number of the last frame that was exported. | Integer |
| versionNumber | Current version number of this export.
Zero if there is no version. |
Integer |
| versionName | Current version name of this export. Empty if unversionned. | String |
| fps | Frame width of the exported frames. | Double |
| scanFormat | Scan format of the exported asset. Possible values:
|
String |
| depth | Bit depth of the exported asset. Possible values:
|
String |
| height | Frame height of the exported asset. | Long |
| width | Frame width of the exported asset. | Long |
| aspectRatio | Frame aspect ratio of the exported asset. | Double |
| openClipNamePattern | List of the tokens used in the UI to name the Open Clip XML that was created by the export node.
Only available if Clip Version (versioning) is enabled in the UI. |
String |
| openClipResolvedPath | Full path to the open clip that was created, with all the tokens resolved.
Only available if Clip Version (versioning) is enabled in the UI. |
String |
| setupNamePattern | List of the tokens used in the UI to name the batch setup that was created by the export node.
Only available if Clip Version (versioning) is enabled in the UI. |
String |
| setupResolvedPath | Full path to the batch setup that was created, with all the tokens resolved.
Only available if Clip Version (versioning) is enabled in the UI. |
String |
Called at application startup, and whenever the user switches project. Use it to define the default name given to new Batches created by the user in the Media Panel. Overrides the preferences defined in . The returned value can use any of the tokens available in the UI such as <user nickname> (note the lack of underscore).
def batchDefaultIterationName( project ): return ""
if project == "project_name": return "<batch name>_<iteration###>_project" return "<batch name>_<iteration###>_global"
Called at application startup, and whenever the user switches project. Use it to define the default node name given to new render nodes. Overrides the preferences defined in . The returned value can use any of the tokens available in the UI such as <user nickname> (note the lack of underscore).
def batchDefaultRenderNodeName( project ): return ""
if project == "project_name": return "<batch name>_render_project" return "<batch name>_render_global"
Called at application startup, and whenever the user switches project. Use it to define the default node name given to new Write File nodes. Overrides the preferences defined in . The returned value can use any of the tokens available in the UI such as <user nickname> (note the lack of underscore).
def batchDefaultWriteFileNodeName( project ): return ""
if project == "project_name": return "<batch name>_write_file_project" return "<batch name>_write_file_global"
Called at application startup, and whenever the user switches project. Use it to define the default group path where Batch setups will be saved. Overrides the preferences defined in . The returned value can use any of the tokens available in the UI such as <user nickname> (note the lack of underscore).
def batchDefaultGroupPath( project ): return ""
if project == "project_name": return "~/specialPathForThatProject/batch/<batch name>" return "~/batch/<batch name>"
Called at application startup, and whenever the user switches project. Use it to define the default iteration path where batch setups will be saved. Overrides the preferences defined in . The returned value can use any of the tokens available in the UI such as <user nickname> (note the lack of underscore).
def batchDefaultIterationPath( project ): return ""
if project == "project_name": return "~/specialPathForThatProject/batch/<batch name>/iterations" return "~/batch/<batch name>/iterations"
Called at application startup, and whenever the user switches project. Use it to define the default action geometry import path where geometry will be imported from. Overrides the preferences defined in . The returned value can use any of the tokens available in the UI such as <user nickname> (note the lack of underscore).
def actionDefaultGeometryPath( project ): return ""
if project == "project_name": return "~/specialPathForThatProject/batch/<batch name>/fileformats" return "~/batch/<batch name>/fileformats"