perfect! thanks a lot! 

Happy Easter!

----- Original Message -----
From: "Gabor L. Toth" <[email protected]>
To: "Nuke user discussion" <[email protected]>
Sent: Thursday, 17 April, 2014 12:19:59 PM
Subject: Re: [Nuke-users] tcl topnode from inside group



If I understand correctly, something like this in the camera expression: 
[value [topnode this.parent.input].translate.x] 




On Thu, Apr 17, 2014 at 12:55 PM, Thorsten Wolf < [email protected] 
> wrote: 


hi, 


how can i get knob values via topnode from inside a group? 

i did a workaround with a helper dot but would like to it straight via 
tcl/python expression. 

thanks for any help 

thorsten 


workaround: 


set cut_paste_input [stack 0] 
version 7.0 v9 
push $cut_paste_input 
Dot { 
name Dot378 
selected true 
xpos 23284 
ypos 8932 
addUserKnob {20 User} 
addUserKnob {13 translateTop} 
translateTop {{"\[value \[topnode].translate.x]"} {"\[value 
\[topnode].translate.y]"} {"\[value \[topnode].translate.z]"}} 
addUserKnob {13 rotateTop} 
rotateTop {{"\[value \[topnode].rotate.x]"} {"\[value \[topnode].rotate.y]"} 
{"\[value \[topnode].rotate.z]"}} 
} 
Group { 
name Group1 
selected true 
xpos 23118 
ypos 9026 
} 
Output { 
inputs 0 
name Output1 
xpos 550 
ypos 601 
} 
Input { 
inputs 0 
name Camera 
xpos 444 
ypos 415 
} 
Camera2 { 
translate {{"\[value this.parent.input.translateTop.x]"} {"\[value 
this.parent.input.translateTop.y]"} {"\[value 
this.parent.input.translateTop.z]"}} 
rotate {{"\[value this.parent.input.rotateTop.x]"} {"\[value 
this.parent.input.rotateTop.y]"} {"\[value this.parent.input.rotateTop.z]"}} 
name Camera4 
selected true 
xpos 375 
ypos 510 
addUserKnob {20 User} 
} 
end_group 
_______________________________________________ 
Nuke-users mailing list 
[email protected] , http://forums.thefoundry.co.uk/ 
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users 


_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to