a reload all read nodes script that actually works?


I’ve tried all the scripts from around the interweb and none of them seem to work with Nuke 6. It’s driving me crazy.


hmm… have a try:

import nuke
nodes = nuke.allNodes()
for node in nodes:
	if node.Class() == "Read":


heh - nice. That works. For some reason, none of the others do. I guess they are out of date for Nuke 6 or something.

Thanks. Where do you store scripts to load them with a single command?


You keep them in your .Nuke directory, and modify your menu.py to reference them.

I recommend looking to get your Nuke prefs setup in your Dropbox so they are easily backed up and easy to use on any system.

In your actual ~/.Nuke directory you just need a one line init.py referencing the DropBox location:

## andrewhake init.py

# add Dropbox nuke path

And in your DropBox Nuke directory an init.py to properly reference its directories:

# add Dropbox nuke plugin paths

#  J_Ops
#  Created by Jack Binks on 14/02/2010.
#  Copyright (c) 2010 Jack Binks. All rights reserved.

And of course your menu.py to actually make the customizations, menus, etc.

So to use this script from the toolbar, you can save the script in the proper folder if you are keeping things organized:

# Reload all ReadNodes

import nuke

def reloadRead():
	nodes = nuke.allNodes()
	for node in nodes:
		if node.Class() == "Read":

And in your menu.py add something like:

# reloadRead
import reloadRead
o_O.addCommand('reloadRead', 'reloadRead.reloadRead()', icon='reloadRead.png')

(o_O) is the name of my custom menu I am adding this to.

And here is an icon :wink:


This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.