Hi Dan and Ben here is the scenario with a bit more detail. Using nuke's planar tracker, track a face, for example. The gathered data is stored as an animated transform matrix. Using this matrix, I want to set a reference frame (identity matrix on a certain frame), but I want to be free to choose any frame and update the reference frame to that frame (like I can using a tracker node or a corner pin (setting the froms to the tos on a certain frame)). I will try multiplying by the inverse of the matrix (yowza) That sounds promising!
Thanks guys! Pete On Tue, Oct 20, 2015 at 9:52 PM, Dan Ring <[email protected]> wrote: > Hi Pete, > > can you explain your problem a bit more, for example what nodes are you > using, were you simply given a Transform / CornerPin node that has an > animated matrix? There may be an easier way to achieve what you want. > > The following is the "hard way". First go to your new reference frame 'f' > and get that matrix, let's call it M. Now for every frame, get the matrix > A, and post-multiply it by the inverse of M, and set that as your new A, > e.g. A = A * M^-1. This is effectively warping everything by the opposite > of whatever existed at 'f', making 'f' your new reference frame. For > practical reasons, it might make more sense to save your matrix into a new > Transform node so that you still have the original if you want. > > Hope that makes sense, > > Dan. > > > > > > > On Tue, Oct 20, 2015 at 3:53 AM, Pete O'Connell <[email protected]> > wrote: > >> Hi, does anyone have any insight into how to set the reference frame on >> an animated transform matrix? This would be similar to setting the >> reference frame on a tracker node or making the FROMs the same as the TOs >> on a certain frame of an animated cornerpin node. >> >> I'm stumped :P >> >> Pete >> >> _______________________________________________ >> Nuke-python mailing list >> [email protected], http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python >> >> > > > -- > Dan Ring, Ph.D. > Senior Research Engineer > The Foundry > 31-36 Ormond Quay Upper > Dublin 7 > Ireland > Tel: +353(0) 1 526-6788 > Web: www.thefoundry.co.uk > Email: [email protected] > > The Foundry Visionmongers Ltd. > Registered in England and Wales No: 4642027 > > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > -- -
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
