2017

Table Of Contents
profiles Dictionary. User-Defined. A dictionary of userData dictionaries where the keys are also used as the
name of the profiles displayed in the contextual menu.
Threading Hooks
The python hooks described above block the application until they finish their task. To get around this, you
can run a hook in its own thread. The example below provides you with the code required to run
renderEnded() in a thread separate thread. Comments have been added inline.
from threading import Thread
import atexit
#threads is a list used to keep track of all the threads created
threads = []
def wait_for_threads_at_exit():
global threads
if (len(threads) > 0 ):
for thread in threads:
print("Waiting for %s" % thread.name)
#join() waits for the thread to finish before relinquishing control,
# making sure everything is done before exit.
thread.join()
threads = []
#Clean up by Python on exit
atexit.register(wait_for_threads_at_exit)
#The actual code to execute in a thread.
def async_callback(param1, param2):
print("async_callback(%s, %s)\n" % ( str(param1), str(param2)) );
#renderEnded is the actual hook called by the application,
# with its standard moduleName, sequenceName, and elapsedTimeInSeconds
# parameters.
def renderEnded(moduleName, sequenceName, elapsedTimeInSeconds):
#Creates the separate thread
thread = Thread( target = async_callback,
name = "async callback",
args = ( moduleName, sequenceName, ) )
thread.start()
#Add to threads[] the just created thread, to keep track and
# clean up on exit.
threads.append( thread )
Conform Overview
Use Conform to troubleshoot imported timelines and to link segments to sources.
Events List Displays the events that make up the sequence displayed in the Timeline area. Selecting an event
in the list also selects it in the Timeline. You can sort the list using by clicking the column headers. Linked
events are usually displayed, but if you are only interested in unlinked events, you can hide the linked events
from the Display Options box. If the Events list displays the message All Sources Linked, the selected sequence
is already conformed.
The data displayed in the Event list is one of the following colours:
214 | Chapter 6 Importing and Exporting Media