Skip to content

Instantly share code, notes, and snippets.

@surrealroad
Created June 23, 2014 15:32
Show Gist options
  • Save surrealroad/bb6336b127f84197c566 to your computer and use it in GitHub Desktop.
Save surrealroad/bb6336b127f84197c566 to your computer and use it in GitHub Desktop.
XPath Queries for Final Cut Pro 7 XML files
// clips
"//clip"
// shot-take
"//clip[" & $clipIndex & "]/logginginfo/shottake"
// scene
"//clip[" & $clipIndex & "]/logginginfo/scene"
// default angle
"//clip[" & $clipIndex & "]/defaultangle"
// reel name
"//clip[" & $clipIndex & "]//timecode/reel/name[1]"
// clip name
"//clip[" & $clipIndex & "]/name"
// duration
"//clip[" & $clipIndex & "]/duration"
// in point
"//clip[" & $clipIndex & "]/in"
// out point
"//clip[" & $clipIndex & "]/out"
// good take
"//clip[" & $clipIndex & "]/logginginfo/good"
// clip description
"//clip[" & $clipIndex & "]/description"
// master clip
"//clip[" & $clipIndex & "]/ismasterclip"
// file path
"//clip[" & $clipIndex & "]//file/pathurl[1]"
// drop-frame
"//clip[" & $clipIndex & "]//timecode/displayFormat[1]"
// start frame
"//clip[" & $clipIndex & "]//timecode/frame[1]"
// height
"//clip[" & $clipIndex & "]//media/video/samplecharacteristics/height[1]"
// width
"//clip[" & $clipIndex & "]//media/video/samplecharacteristics/width[1]"
// audio depth
"//clip[" & $clipIndex & "]//media/audio/samplecharacteristics/depth[1]"
// audio sample rate
"//clip[" & $clipIndex & "]//media/audio/samplecharacteristics/samplerate[1]"
// audio channel count
"//clip[" & $clipIndex & "]//media/audio/channelcount[1]"
// UUID
"//clip[" & $clipIndex & "]/uuid"
// log note
"//clip[" & $clipIndex & "]/logginginfo/lognote"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment