thanks! perfect
____ ESET 10286 (20140820) ____
The message was checked by ESET Mail Security. _______________________________________________ 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
Gesendet: Freitag, 22. August 2014 um 18:05 Uhr
Von: "Johannes Hezer" <j.he...@studiorakete.de>
An: nuke-python@support.thefoundry.co.uk
Betreff: Re: Aw: Re: [Nuke-python] connectInput to a group
Von: "Johannes Hezer" <j.he...@studiorakete.de>
An: nuke-python@support.thefoundry.co.uk
Betreff: Re: Aw: Re: [Nuke-python] connectInput to a group
The scope needs to be in the root again ...
set cut_paste_input [stack 0]
version 8.0 v4
push $cut_paste_input
Group {
name Group1
selected true
xpos -343
ypos -217
addUserKnob {20 User}
addUserKnob {22 a T "g =nuke.thisNode()\nnuke.Group.end(g)\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
Transform {
center {1024 580}
name Transform1
selected true
xpos -168
ypos -135
}
On 08/22/2014 09:45 AM, Thorsten Wolf wrote:
set cut_paste_input [stack 0]
version 8.0 v4
push $cut_paste_input
Group {
name Group1
selected true
xpos -343
ypos -217
addUserKnob {20 User}
addUserKnob {22 a T "g =nuke.thisNode()\nnuke.Group.end(g)\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
Transform {
center {1024 580}
name Transform1
selected true
xpos -168
ypos -135
}
On 08/22/2014 09:45 AM, Thorsten Wolf wrote:
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
}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 groupnuke.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
____ ESET 10286 (20140820) ____
The message was checked by ESET Mail Security._______________________________________________ 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____ ESET 10286 (20140820) ____ The message was checked by ESET Mail Security.
-- STUDIO RAKETE GmbH Johannes Hezer, Compositing TD & Stereoscopic SV Schomburgstr. 120 D - 22767 Hamburg j.he...@studiorakete.de Tel:+49 (0)40 - 380 375 69 - 0 Fax:+49 (0)40 - 380 375 69 - 99 ------------------------------------------------------ Pflichtangaben laut Handelsgesetzbuch und GmbH-Gesetz: STUDIO RAKETE GmbH Schomburgstr. 120 D - 22767 Hamburg www.studiorakete.de / i...@studiorakete.de Geschaeftsfuehrer: Jana Bohl Die Gesellschaft ist eingetragen im Handelregister des Amtsgerichts Hamburg unter der Nummer HR B 95660 USt.-ID Nr.: DE 245787817
____ ESET 10286 (20140820) ____
The message was checked by ESET Mail Security. _______________________________________________ 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