The world needs more Ben Dickson! This is working now, with Ben's line substituted for mine.
Thanks Ben, hope they aren't working you too hard at RSP :) Hi Paul, here is the link the the thread I was talking about. http://www.vfxtalk.com/forum/lock-viewer-certain-node-t30630.html Cheers Pete On Fri, Mar 4, 2011 at 8:52 PM, Ben Dickson <[email protected]> wrote: > You can circumvent connectViewer - get at the viewer's node, and > connecting it as you would a regular node: > > nuke.activeViewer().node().setInput(9, nuke.toNode("thisVersion")) > > ..which doesn't doesn't alter the current selection > > Paul Fiebiger wrote: > > Hey Pete; > > Can you post a link to the thread. I would be interested to learn more. > > Thanks > > > > On Thu, Mar 3, 2011 at 11:15 PM, Pete O'Connell > > <[email protected] <mailto:[email protected]>> wrote: > > > > There is already a thread on vfxtalk about this that has some > > advice in case anyone is interested. > > Pete > > > > > > On Thu, Mar 3, 2011 at 9:48 PM, Pete O'Connell > > <[email protected] <mailto:[email protected]>> wrote: > > > > Hi I am trying to lock a viewer buffer to a certain node with > > a callback but it is causing my viewer node to be always > > selected (and makes no other node selectable). I am stumped. > > In this code I am using a NoOp node called "thisVersion". > > Anyone have any ideas how to get this working, or done > > something similar? > > Here is what I have so far: > > ######################################################### > > def lockThisVersion(): > > nuke.connectViewer(9, nuke.toNode("thisVersion")) > > def callbackLockThisVersion(): > > nuke.addKnobChanged(lockThisVersion,nodeClass='Viewer') > > if __name__ == '__main__': > > callbackLockThisVersion() > > ##################################################### > > > > Help > > Pete > > -- > > Pete > > > > > > > > > > -- > > Pete > > > > _______________________________________________ > > Nuke-python mailing list > > [email protected] > > <mailto:[email protected]> > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > > > > > > > > -- > > Paul Fiebiger > > ICO VFX > > 727 South Main St. > > Burbank, CA 91506 > > 818-766-6070 (o) > > 520-975-0280 (c) > > www.icovfx.com <http://www.icovfx.com> > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nuke-python mailing list > > [email protected] > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > > -- > ben dickson > 2D TD | [email protected] > rising sun pictures | www.rsp.com.au > > _______________________________________________ > Nuke-python mailing list > [email protected] > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > -- Pete
_______________________________________________ Nuke-python mailing list [email protected] http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
