Skip to content

Posts

Read node from Write node

Written in Python, with Nuke 6.9 in mind, generate a Read node from the selected Write node.

Howdy! There's a newer version of this script here.

The script will attempt to load an image sequence or a single file (such as a movie file), based off the selected Write node. If the first and last frame can not be determined, it will fall back to the project settings’ frame range and throw a warning.

The script comes with one limitation; it assumes you render out any file sequences with a frame padding of four digits surrounded by period signs:

  • .####.
  • .%04d.

Supported real world examples:

  • lotr_seq1_shot1_v001_fa.####.exr
  • blah.%04d.jpg
  • hello.mov

Download: readFromWrite.py

  • v1.4: Better sequence detection. If you had problems with 1.3, try this.
  • v1.3: Write nodes with expressions now gets evaluated correctly.
  • v1.2: Takes the ‘premultiplied’ setting from the Write node, auto-detects movie files frame ranges, better logic when detecting a frame range
  • v1.1: Support for filenamefilter callback
  • v1.0: Initial release

Place the Python script in the /scripts dir inside your NUKE_PATH (see my previous post here on setting this up). Add the following to your menu.py:

import readFromWrite
nuke.menu( 'Nuke' ).addCommand( 'My file menu/Read from Write', 'readFromWrite.readFromWrite()', 'shift+r' )

You should now be able to select any Write node and hit Shift + R to generate a Read node!

Turning your renders up to 11

An interview with me on our cloud rendering solutions is now published over at CGSociety.

“We need to make sure that we’re working with the best technology, as some of our projects can be very render intensive,” he begins. “But our motto is to spend time focusing on the creative side of building beautiful images, and let the machines do the hard work.”

Check it out here.