Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesCreative Cloud DebateFAQ

Apply tracking data to masks?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
Jiri FialaApply tracking data to masks?
by on Feb 8, 2008 at 5:32:40 pm

Hello guys!

This seems like a n00bish question, but I've been working with AFX for a while and am still scratching my head with this one.

How do I apply tracking data to a mask? Let's say I need to brighten someone's eyes. I draw a mask and apply Levels to that one, but how do I shift the mask according to the tracker? In node based apps like Fusion this is really simple but in AFX, I cannot figure it out.

Thanks!


Return to posts index
Reply   Like  

Mike ClasbyRe: Apply tracking data to masks?
by on Feb 8, 2008 at 8:49:11 pm

Here are two scripts that do what you want:

http://forums.creativecow.net/readpost/2/916999







Return to posts index
Reply   Like  

Jiri FialaRe: Apply tracking data to masks?
by on Feb 8, 2008 at 9:48:21 pm

Thanks Mike, but that seems way too complicated for something as basic as this...


Return to posts index
Reply   Like  


Mathias MöhlRe: Apply tracking data to masks?
by on Mar 12, 2009 at 1:05:42 pm

Tracker2Mask is a free script of mine that does the job and is really easy to use.
Usage is explained in the video tutorials here:
http://aextensions.blogspot.com/2009/02/tracker2mask.html


Return to posts index
Reply   Like  

Morgan ChadwickRe: Apply tracking data to masks?
by on Feb 8, 2008 at 8:51:46 pm

record your tracking data to a null object and use the null object to parent your mask ;)



Return to posts index
Reply   Like  

Jiri FialaRe: Apply tracking data to masks?
by on Feb 8, 2008 at 9:10:00 pm

Morgan, that's what i tried first, but you cannot set Mask position in AE. Only its shape. If I duplicate the layer and parent it to the null, the whole layer moves and the masked region moves all over the place...


Return to posts index
Reply   Like  


Jimmy BrungerRe: Apply tracking data to masks?
by on Feb 9, 2008 at 8:59:31 am

I'd love to be able to apply different trackers to diff points on a mask...would that be a script-based command or is it not possible in AE?

I currently use Mocha for all my tracking & roto, but export of masks to AE is not possible so I have to export matte runs and track matte them in AE. To have mocha masks in AE would be special. Both can use Bezier splines so it *should* be possible I would have thought.

*Production Studio Premium CS2 / *Combustion 3 / Mocha v1.0.1 / Elastic Reality
-------------------------------------
Win XP Pro 32 / Intel P4 3GHz / 2GB RAM / GeForce FX5200 / DeckLink Pro / Roland DS-5s / Sony BVM-20G1E / 2 x Dell 2007FP / DVS SDI Clipstation / Wacom Intuos 3 A4 / 110GB/80GB/600GB RAID-0


Return to posts index
Reply   Like  

Christopher R. GreenRe: Apply tracking data to masks?
by on Feb 10, 2008 at 3:14:00 am

[Jimmy Brunger] "I'd love to be able to apply different trackers to diff points on a mask...would that be a script-based command or is it not possible in AE?"

This is exactly why I wrote the Connect_Vertex_to_Point script, which is at the top of my scripts page:

http://www.crgreen.com/aescripts

With my script, you do one vertex (mask point) at a time.


Return to posts index
Reply   Like  

Nate HansonRe: Apply tracking data to masks?
by on Feb 9, 2008 at 4:22:00 pm

I think this tutorial explains exactly what you need to do. He applies a mask to an actor's face and then gets the mask to stay "on" the face throughout the clip, even with shaky camera moves.

http://library.creativecow.net/articles/kramer_andrew/Demon_Face_Warp.php

Hope it helps!

Nate



Return to posts index
Reply   Like  


Simon BonnerRe: Apply tracking data to masks?
by on Feb 9, 2008 at 5:01:35 pm

Hi Jiri,

Try adding your levels to an adjustment layer and drawing the mask onto that. Then track the footage, add the track data to a null, and parent the adjustment layer to the null. I think this works...

Simon



Return to posts index
Reply   Like  
+1

James NiebauerRe: Apply tracking data to masks?
by on Jul 15, 2011 at 3:28:57 am

ok so. what you need to do is create a new null layer. label it footage tracking. track your footage. apply to null later. create new solid layer. make it comp size. mask out your footage on solid layer. invert the mask. feather and expand if needed. set blending mode to silhouette alpha. select footage, null layer, and solid and go to menu layer precompose. pre comp into new comp. name it footage pre comp. now you have footage precomped. bring in footage that you will overlay. track it. apply to new null layer. position tracking pre comp to scale position and rotation on overlay. parent tracking pre comp to new null layer. your done.


Return to posts index
Reply   Like  
+3

Robert NewtonRe: Apply tracking data to masks?
by on Nov 3, 2011 at 10:00:52 pm

Wow, James, way to knock the ball out of the park with that answer.

That was EXACTLY the correct way to do what the original questioner was looking for. For animating the mask on a non-transforming object inside a scene - basically keeping a tight roto around an object that isn't moving - James's explanation above is THE way to do it.

A great way to highlight an object in a scene.
A great way to blur a single object in a scene.
A great way to color correct an object, like a chair, in a scene.

So many uses. No need for scripts (because the original mask isn't changing that much, just transforming along x and y.) Thanks James for setting it out step-by-like that.

Robert N.



Return to posts index
Reply   Like  


Chris WoodRe: Apply tracking data to masks?
by on Apr 23, 2012 at 12:19:17 pm

Hi James, I don't understand the last part:

now you have footage precomped. bring in footage that you will overlay. track it. apply to new null layer. position tracking pre comp to scale position and rotation on overlay. parent tracking pre comp to new null layer. your done.

Could you clarify please?


I have just pre-comped my footage after following all the instructions above. Now I get confused because you say bring in footage that I will overlay. Is this the pre-comp footage, or the original footage? Bring it into where, into the pre-comp, or bring the pre-comp back into the original composition?

See what I mean? Very confusing.

Thanks.


Return to posts index
Reply   Like  
+1

Marc NewmanRe: Apply tracking data to masks?
by on Sep 3, 2012 at 1:41:49 am

I was following along and he brushed over a step. But, I'm not going to repeat how it was explained. Instead, I'll explain what you'll have as a final result:

One precompiled composition with three layers (in order, top to bottom):

1) A solid color. The actual color doesn't matter. The point of this layer is to contain one or more masks. The way in which is follows the movement is by setting the parent of this layer to the layer with the transform moves. Note: You could apply the tracking (transform) info to this layer, instead of using a parent, but you don't really want to do that because you won't be able to use transform for anything other than this layer.

2) The parent null object "Tracking" layer. This layer doesn't even need to be visible. It's just here to provide instruction to the top layer. After applying the tracked motion to this layer the first layer (including the mask) will move, trench, rotate.

3) Your image that will be within the mask (#1). You don't have to apply any effects to this layer, as it will probably be better/easier to apply the effects in your original composition.

You will also have your original composition, prior to making the precompiled comp. Your original composition will contain (top to bottom):

1) The precompiled composition.

2) The background / outer masks/layer(s). Basically, everything else.

Apply your adjustments to #1, above.


Return to posts index
Reply   Like  
+2

Mathias MöhlRe: Apply tracking data to masks?
by on Sep 3, 2012 at 6:51:22 am

If you want to animate the mask with an AE tracker, a very easy and flexible solution is my tool Tracker2Mask:

- You can use as many track points as you want: either move the entire mask with just one track point or add a few more track points to add more precision

- You can either move the entire mask or only move certain vertices (using the "local mode") of Tracker2Mask


If you prefer the cool construction with the precomp, I would track it in mocha AE (included in AE since CS4) and use MochaImport+ to import the tracking data into AE. It makes this entire precomp rig for you in just one click.

Its shown in this tutorial: http://www.redgiantsoftware.com/videos/redgianttv/item/29/
The tutorial shows it with Red Giant Warp, but if you don't need motion blur, you can also use AE's build-in corner pin.

I have a lot of tutorials about both techniques (Tracker2Mask and MochaImport+) on mamoworld.com


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]