Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects How can I extract and “flatten” footage that’s been tracked with Mocha to work with it directly in 2D?

  • How can I extract and “flatten” footage that’s been tracked with Mocha to work with it directly in 2D?

    Posted by Alex Cameron on November 17, 2013 at 12:10 am

    I feel like what I’m looking for is relatively simple, I’m just having trouble articulating what it is.

    For the project I’m working on, I need to be able to go up to the wall, touch it, then have an effect based off my hand’s imprint. Here’s a very crude example of what I’m going for using rotobrush and Mocha:

    https://www.youtube.com/watch?v=HupKQQnfyPQ

    However I want to be able to pull that 2D plane where the hand is touching so I can apply the follow effect to the wall:

    https://www.youtube.com/watch?v=-MReqQXYnBc

    The effect relies on Classic Color Burn so I need that tracked plate to work with. Is there a way for After Effects to project that tracked plane in 2D?

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

    Conrad Olson replied 12 years, 6 months ago 4 Members · 17 Replies
  • 17 Replies
  • Alex Cameron

    November 17, 2013 at 8:29 pm

    Nah, I’ve used AE for quite a while but this is my first project that involves tracking.

    The hand gets in the mix because it’s going to touch the wall, as the hand gets removed we see that there’s an imprint of the hand on the wall.

    I’m definitely not thinking about hand keying as that would indeed be a nightmare, that’s why I wanted to use green screen. The blue thing is just to highlight the tracked area. I should have made it green as that’s what’s going to be the rough size of the green screen patch.

    What I want, in the end, is to have a patch of green screen on the wall. Track it. Take that portion of the green screen, key it out so it’s just the hand and replace it with the hand imprint footage as the hand moves out of frame. It would be infinitely easier to key out and work with if I could actually look at that tracked section in 2D as opposed to having it move all over the place as it does right now.

  • Alex Cameron

    November 18, 2013 at 3:11 pm

    Dave, I went back and edited my original post. I shot some quick footage to give a crude demonstration of what I’m looking for.

  • Conrad Olson

    November 18, 2013 at 5:58 pm

    I think I know what you want to do. Are you basically trying to stablize your footage based on the planar track, so that the area of the wall stays rectangular in the same place all the time?

    If that’s what you are trying to achieve then you need to create a reverse corner pin effect. The last time I tried to do this in After Effects I couldn’t find a simple solution, and I had to use expressions. But you should look in the export options of Mocha, to see if there is a stabilize or invert option.

    conradolson.com

  • Conrad Olson

    November 18, 2013 at 6:03 pm

    I wasn’t quite clear, you would need to write the expressions inside a corner pin effect. The basic idea would be to pick the frame you want to use as your reference frame, then subtract the corner pin data, for every other frame, from that initial value, it should produce a reverse corner pin effect. You would need the same expression in each of the 4 points.

    So something like this (this isn’t correct syntax)

    cornerpin.point1.x.(reference frame)-cornerpin.point1.x.(currentframe)

    conradolson.com

  • Alex Cameron

    November 18, 2013 at 6:04 pm

    Yes! This is what I’m looking for. Do you know if Nuke be able to pull this off? What would I even begin googling for, “reverse corner pin technique”?

  • Conrad Olson

    November 18, 2013 at 6:12 pm

    I use Nuke a lot more than After Effect and it definitely works in Nuke. But I think Mocha has the inverse option for Nuke.

    I know that if you do the planar track in Nuke X, with the native planar tracker, it gives you the option to stabilize when you create the corner pin node.

    conradolson.com

  • Conrad Olson

    November 18, 2013 at 6:16 pm

    I’m in the middle of stuff right now, but if you can’t figure it out let me know and I will try and help you with the expression later.

    conradolson.com

  • Alex Cameron

    November 18, 2013 at 6:42 pm

    Excellent, I’ll try this out with Nuke then. I’m assuming I can just attach a write node to the stabilized footage so I can toss it back to After Effects and achieve the effect?

    Thank you Conrad!

  • Ross Shain

    November 18, 2013 at 7:46 pm

    This is a very common mocha usage. You should not have an issue using the bundled mocha AE and After Effects to accomplish this effect.

    BTW, mocha can export inverted corner pin or another option is the mochaImport+ script:
    https://mamoworld.com/tools/mochaimport

    Ross Shain
    Imagineer Systems
    http://www.imagineersystems.com

  • Alex Cameron

    November 19, 2013 at 1:01 am

    I figured I was missing something obvious in Mocha. I looked around the program and still can’t find where to do it. Is it under the stabilize tab?

    Thanks for your input!

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy