Auto Save Render Script

AutoSaveRenderScript

This Nuke helper script automatically creates a versioned copy of the currently open .nk file whenever a Write Node finishes rendering.
Just hit render, and a copy of your Nuke script will be saved along with the render in the 'render_scripts' folder, creating a backup of every rendered version.

Installation:

1 . Copy 'AutoSaveRenderScript.py' to the .nuke folder in C:\Users\%username%\.nuke (Windows)
2. Add this line to menu.py
import AutoSaveRenderScript

First submitted: 19 August 2025

Updated: 24 August 2025

Author: MinnazRehman

Compatible Nuke versions: 7.0 or later

Compatibility: Source

How it works:

  • Listens to Nuke’s addAfterRender callback.

  • Reads the render path from the active Write node.

  • Builds a render_script folder inside the Write node’s output directory.

  • Creates a clean script name from the render filename (ignoring #### or %04d).

  • Copies the current Nuke script (.nk) into that folder using the naming convention:

    1. {base_name}_script_v01.nk

    2. {base_name}_script_v02.nk

    3. {base_name}_script_v03.nk

    (Auto-increments version numbers instead of overwriting.)

  • Saves a copy without interfering with your open session in Nuke.

  • Works with image sequences (####, %04d) or movie outputs (.mov).

  • Ensures reproducibility of renders by archiving the exact script version.

  • The script must be saved on disk before rendering — it cannot copy an “Untitled” session.

Sign in or register to download or rate.