Hi,
you are right, it does not work. It seems that nuke is not updating the
matrix when it is going through the frames internally as the point is
freezed at the current frame. At the moment I can't think of any other
way than writing a special baking script for this.
Best regards,
Michael
Am 12.06.2012 11:35, schrieb Ron Ganbar:
Hi Michael,
again, thanks for your help so far.
Little problem is that I can't seem to be able to bake the keyframes
coming out of your expression with the Edit/Generate command. Any idea why?
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/
On 11 June 2012 11:45, Ron Ganbar <[email protected]
<mailto:[email protected]>> wrote:
Hi Michael,
that's great! All I need. Thanks.
Incidentally, how difficult will it be to create a script that does
that for any selection of concatenating transforms? Seems like a
useful thing, no?
Ron Ganbar
email: [email protected] <mailto:[email protected]>
tel: +44 (0)7968 007 309 <tel:%2B44%20%280%297968%20007%20309> [UK]
+972 (0)54 255 9765 <tel:%2B972%20%280%2954%20255%209765> [Israel]
url: http://ronganbar.wordpress.com/
On 10 June 2012 16:11, Michael Habenicht <[email protected]
<mailto:[email protected]>> wrote:
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] <mailto:[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]>
<mailto:[email protected] <mailto:[email protected]>>
tel: +44 (0)7968 007 309
<tel:%2B44%20%280%297968%20007%20309> [UK]
+972 (0)54 255 9765 <tel:%2B972%20%280%2954%20255%209765>
[Israel]
url: http://ronganbar.wordpress.__com/
<http://ronganbar.wordpress.com/>
_________________________________________________
Nuke-users mailing list
[email protected].__co.uk
<mailto:[email protected]>,
http://forums.thefoundry.co.__uk/
<http://forums.thefoundry.co.uk/>
http://support.thefoundry.co.__uk/cgi-bin/mailman/listinfo/__nuke-users
<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users>
_________________________________________________
Nuke-users mailing list
[email protected].__co.uk
<mailto:[email protected]>,
http://forums.thefoundry.co.__uk/ <http://forums.thefoundry.co.uk/>
http://support.thefoundry.co.__uk/cgi-bin/mailman/listinfo/__nuke-users
<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