archiveHook.py

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.

archiveSelectionUpdated

Called when the user updates the information on the currently selected element in an opened archive (either through the U keyboard shortcut, or through the Gear menu > Update selection information.) Update selection information tells the user which segments are needed to bring the selection back online.

def archiveSelectionUpdated( segmentInfo, numFrames, numClips,
                             dataSize, metadataSize ):
   pass
segmentInfo
Dictionary{ Integer, String }. Map of segment ID to file path . If this is a non-file based archive, indicates the device type.
numFrames
Long. Number of frames of the selection.
numClips
Integer. Number of clips in the selection.
dataSize
Float. Size of the selection, in MB.
metadataSize
Float. Size of the metadata for the selection, in MB.