doesn't work ...
set cut_paste_input [stack 0]
version 7.0 v10
push $cut_paste_input
Group {
name Group1
selected true
xpos -50
ypos -70
addUserKnob {20 User}
addUserKnob {22 a T "g =nuke.thisNode()\nt = nuke.selectedNode()\nt.connectInput(0,g)\n\n\n" +STARTLINE}
}
Input {
inputs 0
name Input1
xpos 0
}
Output {
name Output1
xpos 0
ypos 300
}
end_group
push $cut_paste_input
Transform {
center {1024 580}
name Transform1
selected true
xpos 125
ypos 9
}
version 7.0 v10
push $cut_paste_input
Group {
name Group1
selected true
xpos -50
ypos -70
addUserKnob {20 User}
addUserKnob {22 a T "g =nuke.thisNode()\nt = nuke.selectedNode()\nt.connectInput(0,g)\n\n\n" +STARTLINE}
}
Input {
inputs 0
name Input1
xpos 0
}
Output {
name Output1
xpos 0
ypos 300
}
end_group
push $cut_paste_input
Transform {
center {1024 580}
name Transform1
selected true
xpos 125
ypos 9
}
Gesendet: Freitag, 22. August 2014 um 17:08 Uhr
Von: "Erwan Leroy" <er...@erwanleroy.com>
An: "Nuke Python discussion" <nuke-python@support.thefoundry.co.uk>
Betreff: Re: [Nuke-python] connectInput to a group
Von: "Erwan Leroy" <er...@erwanleroy.com>
An: "Nuke Python discussion" <nuke-python@support.thefoundry.co.uk>
Betreff: Re: [Nuke-python] connectInput to a group
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:
_______________________________________________ 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-pythonHi 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.thanksthorsten
_______________________________________________
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