Get “real” positions of corner points with multiple consecutive corner pins

Okay, so I’ve made life hard on myself, and I didn’t realize how much so until just now. Hopefully, there is a simple expression that somebody can help me figure out.

I am working on a shot on my reel. Decided to try using Mocha to do some tracking since I have access to it through fxphd, and I could stand to learn it better. Got a bad track. (Surely my fault, since I haven’t actually done the mocha course yet.) But, it was kind of close, so I decided to use it along with another corner pin node. The corner pin node from Mocha gave me rough movement, then I just had to fine tune everything with my additional corner pin node. It seemed to work well enough.

But, now I want to do an expression based on the actual position of the corner points in the frame. And I have no idea how to do it.

I assume I’m not explaining this well enough, so I am attaching a Nuke script that shown what I want, and uses my actual two corner pin nodes. I’m hoping to avoid having to completely redo the track to make this work. I’m lazy. 🙂

CornerPin2D #1 to1.x = 924
CornerPin2D #2 to1.x = 484
Resulting Point = 644

I’m imagining that there’s a simple relation between these numbers that doesn’t require me doing a ton of matrix math, but I’m just not seeing it.

Attached Files
File Type: nk TwoCornerPins.nk (48.6 KB)
No Responses to “Get “real” positions of corner points with multiple consecutive corner pins”

Post a Comment