2017

Table Of Contents
DL_DEBUG_PYTHON_HOOKS Enable to get verbose output from hooks, which should simplify the
debugging process. Outputs to the shell about:
Which hooks are loaded from which files
The data sent to each hook that is triggered
export DL_DEBUG_PYTHON_HOOKS=1
Reloading Hooks From Within the Application
A new hotkey has been added to re-scan hook files while the application is running. This is useful to iteratively
test changes during implementation.
By default, this is mapped to Ctrl+Shift+P+H, but can be found in the hotkey editor under the name Scan
for python hooks.
Archive Hooks
archiveRestored
Called when a restore operation from an archive successfully completes. A restore operation can be as simple
as a partial restore (restoring a single clip) or as long as a full Project restore.
def archiveRestored( archiveName ):
print 'This archive was successfully restored: %s' % archiveName
archiveName String. Name of the archive that was entered when the archive was first created, and from
which an element was successfully restored.
archiveComplete
Called when an archive operation successfully completes. This can be archiving individual clips, Archive
Project, or Archive Setups. The archive need not be closed (Close Archive from the application UI) for
archiveComplete to be called.
def archiveComplete( archiveName ):
print 'This archive was successfully created: %s' % archiveName
archiveName String. Name of the archive to which elements were successfully archived.
archiveSegmentComplete
Called each time an archive segment is successfully written.
def archiveSegmentComplete( segmentPath, archiveName, archivePath, status,
statusMessage, archiveComplete ):
pass
segmentPath String. Path to the archive segment file that successfully completed. segmentPath is empty
for non-file archives such as VTR archives.
archiveName String. Name of the archive that the segment is part of.
archivePath String. Path to the location where the segment was written to disk.
status Integer. Zero if successful, non-zero if there was an error.
statusMessage String. Description of the error, if any. Empty string if status is zero.
archiveComplete Boolean. True if all the segments of the archive successfully complete.
Python Hooks Reference | 197