-
Nuke script: Read node from Write node
Written in Python, with Nuke 6.3 in mind, generate a Read node from the selected Write node.
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 warn the Nuke compositor about this
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.
Real world examples of that would be
lotr_seq1_shot1_v001_fa.####.exrorhello.mov.Please go ahead and give it a go.
Installation
Download: readFromWrite.py (v1.2, 2011-11-21)
- 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 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!