# Mocha-Nuke CornerPin 4-point track workflow in flame?

**URL:** <https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125>\
**Category:** Flame Questions\
**Tags:** track, mocha, nuke\
**Created:** [November 17, 2022, 2:15pm UTC](https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125 "2022-11-17T14:15:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![toodee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/toodee/32/2681_2.png) [@toodee](https://forum.logik.tv/u/toodee)\
**Post date:** [November 17, 2022, 2:15pm UTC](https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125/1 "2022-11-17T14:15:15Z")

</div>

Hi,  
I am using constantly Mocha 4-corner tracks in Nuke (CornerPin node) to track a still frame into a shot. (or a part of it)  
I track a shot in Mocha, export a CornerPin node and paste it into Nuke.  
The four corners track/distort the image throughout the shot. On the reference frame you keep the transform TO and the transform FROM values identical (no distortion).

I would like to so the same in Flame.  
I export from Mocha the 4-corner tracks and load them into the 4-corners of a bilinear. I can do the same trick like in Nuke in flame and copy the tracking data to the UV channels and only keep the reference frame values on one frame. Then I also don’t have any distortion.  
The problem is the the 4-corners are the boundary of the frame in flame. In Nuke the four corners are just transformation data as you can see on the screenshot.

 ![Bildschirm­foto 2022-11-17 um 15.12.34](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/d/d6385acc53bb88bedb71688712acf26deed15259.jpeg)

I guess a workaround in Mocha could be to place the 4-corners on the corners of the image resolution.  
Is there a way to in flame to copy the workflow from Nuke?

Thanks

Best, Daniel

---

<div class="post-metadata">

**Author:** ![Ryland](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@Ryland](https://forum.logik.tv/u/Ryland)\
**Post date:** [November 17, 2022, 3:52pm UTC](https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125/2 "2022-11-17T15:52:58Z")

</div>

After you copy the animation to the UVs, you should be able to switch to the Move UV/Vertex tool using shift-u and then scale the vertices of the UV to create a larger canvas so that your image isn’t being clipped by the edges of the surface.

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [November 17, 2022, 3:59pm UTC](https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125/3 "2022-11-17T15:59:02Z")

</div>

Instead of applying the tracking data to the verts of your perspective surface, apply the tracking to your UV points. Make sure to use 4 corners →

 ![Screen Shot 2022-11-17 at 7.49.54 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/e/e47c96a4d7a97113856e44816c28fd758787fe10.jpeg)

 ![Screen Shot 2022-11-17 at 7.55.06 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/6/6b1030c8af39498227c889922762b54eb4031e71.jpeg)

Then you can do some stuff–\>

 ![Screen Shot 2022-11-17 at 7.56.30 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/4/491faae2a04a65ce02f0eab19987fed94259fa5d.jpeg)

When you want to pin it back, apply the tracking to the verts instead.

 ![Screen Shot 2022-11-17 at 7.52.52 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/a/a713bf42f8b02fe759d7d5f3198ac8efef55afab.png)

 ![Screen Shot 2022-11-17 at 7.56.34 AM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/9/9c2686e795605c7ec2ca95c0f1e15e59015a293f.jpeg)

Best,  
Chris

Edit: Someone will likely point out that the smoother way is exporting your tracking as a gmask tracer with axis from Mocha, loading that setup into Flame and using the axis to distort and undistort a surface in action as an axis has a built in invert toggle.

---

<div class="post-metadata">

**Author:** ![toodee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/toodee/32/2681_2.png) [@toodee](https://forum.logik.tv/u/toodee)\
**Post date:** [November 17, 2022, 5:04pm UTC](https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125/4 "2022-11-17T17:04:56Z")

</div>

Thank you both, I will try that all out tomorrow.

Best, D

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [November 17, 2022, 8:20pm UTC](https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125/5 "2022-11-17T20:20:27Z")

</div>

Under Surface\>Extrapolation, there is a button called _Crop_. You want that turned off.

 ![Screen Shot 2022-11-17 at 3.23.02 PM](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/e/e0891e6f7ecaccfdc5dc7fd69dc495122172fa63.png)

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [November 18, 2022, 12:01am UTC](https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125/6 "2022-11-18T00:01:12Z")

</div>

@toodee I reread your post and I think @ytf has the actual answer you were looking for setting a single frame reference to extend beyond the geometry extents.

---

<div class="post-metadata">

**Author:** ![toodee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/toodee/32/2681_2.png) [@toodee](https://forum.logik.tv/u/toodee)\
**Post date:** [November 18, 2022, 8:35am UTC](https://forum.logik.tv/t/mocha-nuke-cornerpin-4-point-track-workflow-in-flame/7125/7 "2022-11-18T08:35:39Z")

</div>

Yes, I think the “Crop” button is doing the trick! This button reminds me of the Project3D node in Nuke. Every time I forget about the enabled crop 🙂

Thanks a lot all of you.
