nuke.thisNode() will give you node in which the button is.
nuke.selectedNode() is quite clear.
On 22 Aug 2014 08:00, "Thorsten Wolf" <thorsten.v.w...@web.de> wrote:

> Hi all,
>
> I want to connect a selected node to a group via a python script button of
> the group node.
>
>
>
> g = nuke.toNode('Group1')
>
> t = nuke.toNode('Transform1')
>
> t.connectInput(0,g)
>
> something like that but just from a python script button of the group node.
>
> thanks
> thorsten
>
> _______________________________________________
> 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