Hi Ron,

as it is only one transform you can calculate it with the matrix of the transform node. I wrapped it in a NoOp here:

set cut_paste_input [stack 0]
version 6.3 v4
push $cut_paste_input
NoOp {
 name TransformPosition
 selected true
 xpos 136
 ypos -13
 addUserKnob {20 User l TransformPosition}
addUserKnob {26 txt l "" +STARTLINE T "Connect a Transform node to the input and get\nthe transformed position of 'pos' in 'transform'"}
 addUserKnob {26 "" +STARTLINE}
 addUserKnob {12 pos}
 pos {200 300}
 addUserKnob {12 transform}
transform {{"\[python nuke.thisNode().input(0).knob('matrix').value().transform(nuke.math.Vector3(nuke.thisNode().knob('pos').value()\\\[0\\],\\ nuke.thisNode().knob('pos').value()\\\[1\\],\\ 0))\\\[0\\]]"} {"\[python nuke.thisNode().input(0).knob('matrix').value().transform(nuke.math.Vector3(nuke.thisNode().knob('pos').value()\\\[0\\],\\ nuke.thisNode().knob('pos').value()\\\[1\\],\\ 0))\\\[1\\]]"}}
}


Connect the transform node to the input and set the pos knob to the position you want to transform through the transform node.


Best regards,
Michael
--
------------------------------------------
DI (FH) Michael Habenicht
Digital Film Compositor & TD

http://www.tinitron.de
[email protected]
------------------------------------------


Am 10.06.2012 09:22, schrieb Ron Ganbar:
Hi all,
is there a way to consolidate transformations?
I have a CornerPin, then a Transform, and I want the centre of the
CornerPin's four pins' location after it has been transformed. Easy to
get the centre of the corner pin, but the Transform has translate,
scale, and rotation in it, so it's not that easy.
Any idea?

Ron Ganbar
email: [email protected] <mailto:[email protected]>
tel: +44 (0)7968 007 309 [UK]
      +972 (0)54 255 9765 [Israel]
url: http://ronganbar.wordpress.com/



_______________________________________________
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