2017

Table Of Contents
Export hooks are called in the following order:
preCustomExport Optional: called if required by getCustomExportProfiles. Called when the contextual
menu item defined by getCustomExportProfiles is selected by the user.
preExport Always called. In a regular export, preExport is called as the Export window is displayed to the
user. In a custom export, called after preCustomExport.
preExportSequence Always called. Called before writing the sequence.
preExportAsset Always called. When it is called depends on the export option. With Foreground Export,
all preExportAsset are called for each assets immediately in one go. With Background Export, each
preExportAsset is called as each asset job is submitted to Backburner.
postExportAsset Always called. Called after an asset is written. Can be done in backburner as determined
by use BackburnerPostExportAsset.
postExportSequence Always called. Called after postExportAsset.
postExport Always called. Called after postExportSequence.
postCustomExport Optional: called if required by getCustomExportProfiles. Called after postExport.
NOTE In the following descriptions, some dictionary keys have the [Modifiable] keyword. This indicates that
assigning a value to this key will overwrite the key's original value. Keys without the [Modifiable] keyword have
read-only values.
Export Hook Example
Every method in the export hooks have access to two dictionaries, userData and info. userData allows you
to pass custom information between methods, with a scope covering the whole export session. info stores
system information used by the application's export processes, but with a scope limited to the current
method.
NOTE To create an export profile, access the Export dialog, and save a new Format Preset.
#The keys for 'profiles' are the items that appear in the
# contextual menu in the application
def getCustomExportProfiles( profiles ):
profiles['Post for review']= {'exportType':'forReview'} #Adds an entry to the
204 | Chapter 6 Importing and Exporting Media