Fredrik Averpil

  • Filter Post Type
    • All
    • article
    • script
    • photo
  1. 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.####.exr or hello.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!

    • Permalink
    • 6 months ago
    • View comments
    • Tweet Post (0)
    • Reblog Post
    • script
    • nuke

About Fredrik Averpil

My personal blog – with articles on 3D graphics, compositing, workflows and photography.

  • Z
  • @

About Fredrik Averpil

My personal blog – with articles on 3D graphics, compositing, workflows and photography.

Pages

  • About me
  • Showreel

Latest From Twitter

Latest From Flickr

    'Focus (1.4)' by mikedidthis