5 Replies Latest reply on Sep 10, 2009 1:05 PM by ingvarai

    Moving a mask using a Tracker's coordinates?

    ingvarai Level 1

      Camera on a tripod, fixed position, a man with a hat is walking right to left, in front of a wall. I am able to track the man's head, no problem, using Track Motion, Transform. On a second layer(same video), I add a mask, above the man's hat. This masks out everything, except a portion of the wall, slightly larger than the man's hat.

       

      Challenge:

      I want to animate the mask, and position it just above the man's head, to give the impression that the man has no hat - to remove the hat. The wall is unevenly lit, so I want the mask to move as close to the man as possible.

       

      (All of this is just an example, I want to learn how to move a mask using data from a Tracker)

      I have watched countless video tutorials, some of them seem to do what I want, but they are so complex I fall off the wagon before I understand how they do it, as I am new to After Effects.

       

      ingvarai

        • 1. Re: Moving a mask using a Tracker's coordinates?
          Mylenium Most Valuable Participant

          Well, I think you are confusing two different workflows here. What you describe sounds more like you actually want to use a track matte. For that, you'd cut out whatever shape you desire, put it on top of your otehr layer, then in the bottom layer assign the top layer e.g. as an Alpha Matte. That matte layer can then be conventionally tracked like any other layer. Masks on the otehr hand are not trackable - well, at least not directly. For that, you'd use Null objects to follow certain positions where your mask vertices are supposed to be, then use scripts like TrackerViz or Tracker2Mask (freely downloadable e.g. via links on aescripts.com or xscriptorium.com) to transplant the Null position data to the actual mask points.

           

          Mylenium

          1 person found this helpful
          • 2. Re: Moving a mask using a Tracker's coordinates?
            Adolfo Rozenfeld Adobe Employee

            Ingvarai;

            Currently, there's no direct (or at least a built-in) way to apply motion tracking data to a Mask's position. One user did write a script that allows to apply tracking data to individual mask vertices.

            However, what many users do is: apply the mask to a soild layer, apply tracking data to the that layer's position, and then set the solid as an alpha matte for the layer you want to mask.

             

            Once said that, bear in mind that After Effects Help on the web not only has the full contents of the manual, but it's also an amazing, community-based resource which points to a lot of tutorials, forum posts and many other useful bits. if you perform a search for "tracking masks", you'll be delighted with the amount of information you'll find

            • 3. Re: Moving a mask using a Tracker's coordinates?
              ingvarai Level 1

              Thanks to Mylenium and Adolfo!

              I was asking the wrong question, obviously. Anyhows - I was able to do it! ! duplicated a car running on a road, a rather funny effect, the two identical cars running at the same distance.from each others. The Centerpoint property is crucial, without this, I had not been able to do it. Hope I have understood it right.

              ..which points to a lot of tutorials..

              They are good, but I miss very simple, basic tutorials, explaining the most basic things, like this. Many of the tutorials are overcomplex, IMO, and many f them are a little too result oriented, IMO, trying to accomplish certain tasks, whereas I prefer tutors explaining the principles only. When this is said - the amount of tutors is impressing.

               

              ingvarai

              • 4. Re: Moving a mask using a Tracker's coordinates?
                Adolfo Rozenfeld Adobe Employee
                They are good, but I miss very simple, basic tutorials, explaining the most basic things, like this. Many of the tutorials are overcomplex, IMO,

                 

                ingvarai:

                 

                They are complex because we searched for a quite complex subject - applying motion tracking data to masks. If we had searched for a simpler topic, like applying the alpha of a a layer to mask another, we would have gotten simpler results as well

                Best.

                Alfonso... I mean, Adolfo

                • 5. Re: Moving a mask using a Tracker's coordinates?
                  ingvarai Level 1

                  They are too complex for my taste, menaing that they bring in too many topics in one tutor. Look at the tutors at videocopilot.com. Fantastic technical quality,  super screen resolution, speed and accuracy - those writing these are heroes. Still they mix too many features in one tutor I think. Well, I feel this maybe because I am new to AE..

                   

                  Alfonso... I mean, Adolfo

                  So you noticed this?! I corrected it within a fraction of a second, in less time than AE needs to render and track 10 frames
                  ingvarai