put a PyScript knob where the dropdown is ,change n to nuke.thisNode() and add the script to the button, should work. I dont understand the _dot thing there. you have a convension for names?
2015-11-16 13:00 GMT+01:00 <[email protected]>: > Send Nuke-python mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nuke-python digest..." > > > Today's Topics: > > 1. nuke.zoom and in group button (Johan Forsgren) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 16 Nov 2015 11:14:37 +0100 > From: Johan Forsgren <[email protected]> > Subject: [Nuke-python] nuke.zoom and in group button > To: [email protected] > Message-ID: > <CANSD_rrgzXa3m8fW= > [email protected]> > Content-Type: text/plain; charset="utf-8" > > Hi everybody, I have some very simple code i'm trying to put inside a > button > > n = nuke.toNode('myGroup') > > p = n['myDropDown'].value()+"_dot" > > node = nuke.toNode(p) > > nuke.zoom( 1, [ node.xpos(), node.ypos() ]) > > > Should work, works when i'm just executing it in the scripteditor, so I > guess the button knob operates in a different context somehow? do anybody > have any idea of how to get around this? > > Thanks :) > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://support.thefoundry.co.uk/cgi-bin/mailman/private/nuke-python/attachments/20151116/a6fee662/attachment.html > > ------------------------------ > > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > End of Nuke-python Digest, Vol 94, Issue 5 > ****************************************** > -- Kerek Balázs 70 / 605-38-59 [email protected]
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
