Hey guys, sorry for the late reply...long weekend and just got back to work :)
Hope you all had a good one! Thanks Nathan and Nick! Nick...your script did the trick!!! Thank you sooo much! On Fri, May 16, 2014 at 4:21 PM, Nick Guth <[email protected]> wrote: > Not sure if this is right, but it works on a python button from initial > testing. > > r = nuke.root() > > x = nuke.thisNode() > > r.begin() > > nuke.connectViewer(0,x) > > -- > Nick > > On May 16, 2014, at 12:56 PM, Nathan Rusch <[email protected]> > wrote: > > Off the top of my head: > > with nuke.thisParent(): > nuke.connectViewer(0, nuke.thisNode()) > > > -Nathan > > > *From:* HSK <[email protected]> > *Sent:* Friday, May 16, 2014 7:26 AM > *To:* Nuke user discussion <[email protected]> > *Subject:* [Nuke-users] trying to make a Python Script button that > selects the group node itself and views it....not working > > > Hi guys, > > > > I'm trying to make a python script button that allows me to just click a > button in the properties window to view it...rather than looking for it in > the node graph. > > It ends up creating a new viewer node inside my group node, and doesn't > connect it to anything. > > > > > > > > I'm using Nuke 7.0 v4 Linux (Scientific) > > > > Here is the script as follows (pretty basic) > > #============================================= > > lgt2_ctrl = nuke.thisNode() > > lgt2_ctrl.setSelected(True) > > > > # this is where it screws up... > > nukescripts.connect_selected_to_viewer(0) > > > > > > Any thoughts? > > > > Thanks > > > > Steve > > ------------------------------ > _______________________________________________ > 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 >
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
