A very basic script to assemble an edit from a bunch of files in a folder structure. Basic, because the file structure must in a certain way and an edit list must be provided.
AssembleEdit_v21
Updated: 21 January 2011
Author: toodee
Compatible Nuke versions: 6.0 or later
Compatibility: Linux, Mac, Windows
The idea is to keep an „edit" inside Nuke and have an easy way to update the edit with new versions of each shot.
All what is need is some read nodes, timeoffsets, switch nodes and a write node to render out the edit from Nuke.
My script is very unflexible, because it assumes that the edit won't change once it is approved, but here it worked just fine.
The demo edit has the following structure:
sh01, sh02, sh03, ... shxx.
Each shot has its own folder and subfolders for the comp versions.
/Volumes/RENDER/PROJECT/shots/sh01/v001/sh01_comp_v01_0001.dpx
And each shot starts counting from one as it happens by default when exporting from flame.
Imagine a 1500 frames edit with 11 cuts. Take the offline edit and count on which frame the next cut starts. This list I called „editpoints":

The Python script has to be installed in your gizmos folder and add to your menu.py the following :
import AssembleEdit
menubar=nuke.menu("Nodes")
toodee=menubar.addMenu("&TooDee", icon="TooDee.png")
toodee.addCommand('AssembleEdit', 'AssembleEdit.AssembleEdit()', icon="AssEdit.png")
When you run „AssembleEdit" you will see this:
Select the textfile that contains the editpoints, then select the path where the shots are located. When all is filled out correctly hit „ok“.
The result should look similar to this - I just added the write node manually. Having now always two instances of Nuke open, one for working on a shot and the other having the „edit" ready for render. Just change new to comp versions with the ALT-arrow up hotkey and render out a H264/PRORES or whatever.
For a little more detailed information and download links to the demo-material please check out:
http://www.panicpost.de/AssembleEdit.html
Have fun.
Daniel