nathan's script is AWESOME. good for a clean up check after a flurry of comping or when taking over another comper's script who may not subscribe to that "one read to rule them all" rule.
FWIW, while working I've come to use this "teleport" node based on some other postage stamp thing I found on nukepedia or creative crash (forget), kind of copying what we had in Katana. i've caught people who don't like to use channels using it to shuffle mattes around to different points in their script Shake style, but otherwise it's helped a lot. http://pastebin.com/5wBjpzxE def teleport(): # this creates a postage stamp linked to a read to minimize network traffic for interactivity nodeSelection = [] for n in nuke.selectedNodes(): node = n nodeName = node.knob('name').value() nodeXPosition = node['xpos'].value() nodeYPosition = node['ypos'].value() nodeColor = node.knob('tile_color').getValue() node.knob('selected').setValue(False) PS = nuke.createNode('PostageStamp', inpanel = False) PS.setInput(0,node) checkName = nodeName+'_Teleport' nodeNameCheck = 1 nameIncrements = 0 nameNumberFound = False while nameNumberFound is False: for i in nuke.allNodes(): if i.knob('name').value() == checkName+str(nodeNameCheck): print i.knob('name').value() nodeNameCheck = nodeNameCheck + 1 nameIncrements = nameIncrements + 1 if nodeNameCheck == nameIncrements: nameNumberFound = True PS.knob('name').setValue(checkName+str(nodeNameCheck)) PS['tile_color'].setValue( 3281491967 ) if node.Class() == 'Read': PS.knob('label').setValue('[file tail [value '+nodeName+'.file]]') else: PS.knob('label').setValue('[value '+nodeName+'.label]') PS['xpos'].setValue(nodeXPosition+100) PS['ypos'].setValue(nodeYPosition+100) PS.knob('hide_input').setValue(True) PS.knob('selected').setValue(False) nodeSelection.append(n) for y in nodeSelection: y.knob('selected').setValue(True) print nodeSelection if len(nuke.selectedNodes()) == 0: nuke.message('No nodes selected') On Wed, Jan 11, 2012 at 9:28 PM, Deke Kincaid <[email protected]> wrote: > I typically make a bunch of postage stamp nodes connected to a single read > node and hide the inputs. As a shortcut to clean up an existing script I > would look Nathan's "Duplicate Read Destroyer" python script. > > http://www.nukepedia.com/python-scripts/nodegraph/duplicate-read-destroyer/ > > -deke > > > On Wed, Jan 11, 2012 at 21:17, Sean Looper <[email protected]> wrote: > >> Read nodes do not share file handles even for the same file path. Cloning >> the Read node may give you what you're asking for. >> >> -sean >> >> On Jan 11, 2012, at 7:45 PM, "Richard Bobo" <[email protected]> wrote: >> >> Hi, >> >> Here's an open question that I have been curious about… If I have several >> versions of the exact same Read node in my script, is Nuke smart enough to >> know that it already has read in the frame(s) and not do multiple reads? In >> other words, for neatness and sanity reasons, I might copy my Read node >> several times in the script, moving it to different places that I need it - >> because it would be really confusing to pipe a single read all over the >> place. Does that slow the script down? >> >> Thanks for any enlightenment... >> >> Rich >> >> >> Rich Bobo >> Senior VFX Compositor >> >> Mobile: (248) 840-2665 >> Web: <http://richbobo.com/>http://richbobo.com/ >> >> "If I had my life to live over again, I would have made a rule to read >> some poetry and listen to some music at least once a week." >> - Charles Darwin >> >> _______________________________________________ >> Nuke-users mailing list >> [email protected], <http://forums.thefoundry.co.uk/> >> http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >> >> >> _______________________________________________ >> Nuke-users mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >> > > > _______________________________________________ > Nuke-users mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
