PDA

View Full Version : python, reload read node


BasHe
03-15-2010, 09:00 AM
hi,

I have been trying to get the read node to reload with a python command. Sofar I have tried setting the `last` and `version` attributes, which with the gui would trigger a reload. The values are being updated just fine, but there`s no reload of the node. The reason I want to do this, is because I`m working with a digital camera and add frames as I work. Now I have to press several buttons to see my last captured frame. I want to put all of that in one button or keyboard shortcut.
this is what I got sofar:
def lbNext():
seq = nuke.selectedNode()
seq['last'].setValue(seq['last'].value()+1)
nuke.frame(nuke.frame()+1)

toolbar = nuke.toolbar("Nodes")
toolbar.addCommand('', 'lbNext()', '+N', icon = 'lbNext.png')

I hope there`s someone who can help me

Bas

beaker
03-15-2010, 01:10 PM
try either of these:
http://www.creativecrash.com/nuke/downloads/scripts-plugins/c/glt_reloadrange
http://www.creativecrash.com/nuke/downloads/scripts-plugins/c/reload-all-read-nodes

BasHe
03-17-2010, 10:00 AM
Thank you very much, that worked like a charm!

Bas

CGTalk Moderation
03-17-2010, 10:00 AM
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.