2017

Table Of Contents
projectName String. Name of the project saved. This is the project currently open in the UI.
saveTime Float. Time it took to save the project (in seconds).
isAutoSave Boolean. True if the save was automatically initiated. False if the user initiated it.
Generic Hooks
Located in the hook.py.
renderEnded
Called when a sequence finishes rendering, even if the render was unsuccessful due to factors such as a
manual abort.
def renderEnded(moduleName, sequenceName, elapsedTimeInSeconds):
pass
moduleName String. Name of the rendering module.
sequenceName String. Name of the rendered sequence.
elapsedTimeInSeconds Float. Number of seconds it took to render the sequence named sequenceName.
playbackEnded
Called when a sequence finishes playback, successfully or not.
def playbackEnded(sequenceName, fps, debugInfo):
pass
sequenceName String. Name of the sequence that was played back.
fps Float. The frames per second rate at which the sequence was played back.
debugInfo Dictionary. Debugging playback information.
previewWindowConfigChanged
Called when the user changes the video preview device. The parameters for previewWindowConfigChanged
are actually read from the init.cfg VideoPreviewDevice keyword.
def previewWindowConfigChanged(description,width,height,bitDepth,
rateString,syncString):
pass
description String. Description of the video preview device, such as 1920x1080@5994i_free.
width Integer. Width of the selected preview device.
height Integer. Height of the selected preview device.
bitDepth Integer. Integer of the selected preview device.
rateString String. Rate of the selected preview device, such as 6000i.
syncString String. Sync source of the selected preview device, such as freesync.
Export Hooks
Located in the exportHook.py.
These hooks are used when the user exports from the application.
Python Hooks Reference | 203