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 <nuke-python-requ...@support.thefoundry.co.uk>:

> Send Nuke-python mailing list submissions to
>         nuke-python@support.thefoundry.co.uk
>
> 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
>         nuke-python-requ...@support.thefoundry.co.uk
>
> You can reach the person managing the list at
>         nuke-python-ow...@support.thefoundry.co.uk
>
> 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 <j.a.forsg...@gmail.com>
> Subject: [Nuke-python] nuke.zoom and in group button
> To: nuke-python@support.thefoundry.co.uk
> Message-ID:
>         <CANSD_rrgzXa3m8fW=
> omofypc9akva-ufljjq+innw+n75xq...@mail.gmail.com>
> 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
> Nuke-python@support.thefoundry.co.uk, 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
c...@c1p0.hu
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to