FCP XML to Nuke

Processes an FCP XML file from FCP 7 or Premiere Pro into a Nuke Script for each clip in the timeline.

Updated: 22 August 2012

Author: jedypod

Compatible Nuke versions: 6.0 or later

Compatibility: Linux, Mac

This script takes a Final Cut XML file with a single flattened video track, and builds Nuke scripts for each clip in the timeline.It is intended as a simple way to automate workflows between FCP/Premiere and Nuke. It creates a Nuke script with global first and last frame set, a frameRange node with the proper framerange, and a Write node set to the output path. There is an option for creating subdirectories for every Nuke script created. Handles are also an option. It can parse reel number and clip number from Red and Alexa footage, or can use the clip filename as the base naming for the output files.

This script was somewhat inspired by compflows.blogspot.com, but has been written from scratch and is a bit more flexible (although it only goes from XML->NukeScripts and not back). This has only been tested on OSX, but in theory should be cross-platform compatible. Comments and suggestions are welcome!

v1.5 - Added render format selection, to allow the user to set what format the created write nodes are set to. Currently the choices are Prores4444, EXR, JPG (0.9 422), and DPX.  Rendering from Nuke in Prores 422HQ is not reccomended due to color shifts introduced by Nuke's YUV->RGB color transform. When Prores4444 is selected, the framerate is set to the clip framerate for the current clip.
v1.4 - Fixed a bug handling XMLs with multiple sequences.
v1.3 -  Made support for Premiere FCPXML format more robust. Premiere FCP XML stores all sequences in the project, whereasFinal Cut Pro's XML format stores only a single sequence. I added a box that lets you choose what sequence of the Premiere XML file to process, and it should work more reliably now. Added support for transfer of linear TimeRemaps, Translates, Scales, and Rotates into Nuke. Also transfers framerate for each clip, and many other improvements.
v1.0 - Initial release.

Here is a quick (6min) video demonstration of how it works:

FCP XML to Nuke Script Explanation from Jed Smith on Vimeo.

Add something like this to your menu.py to add the script to your toolbar:

import fcpxml_to_nuke
nuke.toolbar('Nodes').addMenu('Scripts').addCommand('FCP XML to Nuke', 'fcpxml_to_nuke.process_xml()')
This is also available on PasteBin

This software is provided with no guarantee of functionality, no warranty, and no support. I am not responsible if it breaks your computer or deletes your files. However, you are free to use it for anything, share it with anyone, and modify it however you wish. Have fun!

Sign in or register to download or rate.