Yes, it is evaluating inside the group context. Always tricky to remember.
Use nuke.Root().begin() to evaluate inside the main node graph.

Mike F
On Nov 16, 2015 2:14 AM, "Johan Forsgren" <j.a.forsg...@gmail.com> wrote:

> 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 :)
>
>
>
>
>
> _______________________________________________
> 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
>
>
_______________________________________________
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