nuke.thisNode() will give you node in which the button is.
nuke.selectedNode() is quite clear.
On 22 Aug 2014 08:00, "Thorsten Wolf" <[email protected]> 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
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python