In my studio we have offline editors that send me an AAF/XML/EDL and a reference video of their offline edit. My first step for all of these jobs is to load the AAF/XML/EDL and marry it to the reference video.
So this is my first attempt to automate with python. I’m looking for feedback and trying to cover all my bases for things that might pop up in this process.
Here is a quick overview:
-
import the AAF/XML/EDL to a sequence reel
-
import the reference video to the same sequence reel.
-
the reference video must be named the same as the AAF/EDL/XML with “_ref” added to the end.
-
the reference video needs to have the same start frame as the AAF/XML/EDL. e.g. don’t have the AAF/XML/EDL start on the first frame of picture and the reference video have a 2-pop.
-
Select the AAF/XML/EDL sequence and run the script. This will:
— Create video version two.
— Add tracks to this version equal to the original version.
— Move all segments to version two.
— Insert the reference video to version one.
— Clean up empty tracks and lock the reference video / audio.
— Make v2 the primary track and v1 the secondary.
— Delete the reference video in the sequence reel. -
This script uses flame.execute_shortcut(). The shortcuts used in the script should already have a shortcut entry. You will only be affected if you have deleted the shortcut keys for: ‘Overwrite Edit’ and ‘Swap Selected’.
Things still to do:
– add 1 second of virtual black to the heads and tails
– Automate the clean-up of the AAF/XML/EDL name (remove “_online” “_export” etc.)
– After all the merging, move the playhead to the top layer and first frame.
– Account for different names of reference videos? Needs some part of the name to be in common with the EDL.
If this is something you do on a daily basis… let me know what else you might be doing over and over that can be automated.
_BB_merge_offline_002.py (4.1 KB)