I'm trying to parse out film data from a FCP XML export. I want to essentially determine the Cut List information from the XML data. My trouble might be of lack of film knowledge with regard to 35mm 3perf. Here's cut list output:
Shot Footage Length Keycode In Frame Out Frame Roll Clip name
003 0032+09 0066+15 KU 10 1522 8210+09.1 8277+02.2 A172 125-2
The XML output gives me the film data as well:
<filmdata>
<filmslate>
<scene>125</scene>
<take>2</take>
<slate>125-2</slate>
</filmslate>
<cameraroll>A172</cameraroll>
<labroll>K7894</labroll>
<keycode>
<prefix>KU101522</prefix>
<feetframes>8189+00</feetframes>
<perfoffset>1</perfoffset>
<reversed>FALSE</reversed>
</keycode>
<filmstandard>35mm3p</filmstandard>
<telecinespeed>24</telecinespeed>
</filmdata>
How can I determine the Keycode In Frame, as listed in the cut list?
To be more clear:
In the XML, it gives, what I believe is the
starting frame of the camera roll's keycode, not the starting frame of the shot's
keycode.
So, the shot goes from, KU 10 1522 8210+09.1 to KU 10 1522 8277+02.2 according to the cutlist.
But, xml just lists: KU 101522 8189+00.1
I think that if I took this starting keycode of the camera roll (A172 in
this case) and added the Count, I should get to:
KU 10 1522 8210+09.1 . Add the Length, and I should get:
KU 10 1522 8277+02.2
This logic works with the timecode, but I can't figure out why things aren't
adding up in Keycode, aside that it's a pain to add 3perf, so hopefully it's
a math error.
If you have time to take a peak, here are samples:
xml output: [
www.postlogic.com]
cutlists: [
www.postlogic.com]
edls: [
www.postlogic.com]
pseudocode for parsing clip: [
www.postlogic.com]
If you've made it this far, thank you.
Eric