Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Animating masks

From: After Effects Apprentice 05: Creating Transparency

Video: Animating masks

Next let's animate one of our masked shapes. I'm going to bring on a title and animate that on using masks. I'm going to press Home to make sure I'm at the very beginning of my composition, and if you have the exercise files that came with this lesson, I am going to go Project, scroll down to my Sources, and drag in the title Bring on the Night. I am going to drag it to roughly to the middle of my composition, there we go. If you don't have the exercise files feel free to bring on any other layer, a piece of text, go ahead and create text layer, whatever you like. This particular Illustrator file was created with black text, which makes it a bit hard to read.

Animating masks

Next let's animate one of our masked shapes. I'm going to bring on a title and animate that on using masks. I'm going to press Home to make sure I'm at the very beginning of my composition, and if you have the exercise files that came with this lesson, I am going to go Project, scroll down to my Sources, and drag in the title Bring on the Night. I am going to drag it to roughly to the middle of my composition, there we go. If you don't have the exercise files feel free to bring on any other layer, a piece of text, go ahead and create text layer, whatever you like. This particular Illustrator file was created with black text, which makes it a bit hard to read.

So to make it easier to read against these backgrounds I'm going to go ahead and fill it with the color. I can use the Effect menu. I can never remember where Fill is in the Effect menus. So I am going to go to Effects & Presets panel and type Fill. Ah, there it is. It's there in the Generate menu. Drag it on to my title, change the color to something familiar like a white, and now I can see it against my background. I'm going to use a mask shape to reveal this title over time. To do that I'll make sure select it, go up to my tool, choose just the normal Rectangle tool, I don't need anything fancy here, and drag out a rectangle across my type, and what I'd like to do is animate it like this to bring it on.

So let's go ahead and start by seeing the whole title, so I can tell what the heck I'm doing, and I'll make sure that mask visibility is on, so I can see where that mask is in relationship to my title. Let's say that I'd like to have this reveal over the course of one second. I'm going to drag my Current Time Indicator out to 1 second, make sure the mask is revealed for my title layer. If it's not, again the shortcut key is M, and enable the Animation stopwatch for the mask path.

That's the outline around my text. I'll turn it on, go back to time zero, you can press home as a shortcut, and now I need to edit this mask shape. When I edit the mask shape it'll create another keyframe and After Effects will automatically interpolate between keyframes, just like any other parameter. When I press V, return to my Selection tool. That's what I use for editing a mask. You might notice that my mask outline is kind of grayish yellow instead of the normal bright yellow. When a mask outline is in a slightly grayish tone, it's telling you you're not on a keyframe right now. Go ahead and use my Keyframe Navigator. You'll see a bright yellow means I am right on the keyframe. Press Home. Grayish color means I'm not on a keyframe.

I'll double-click it to go ahead and bring up the Free Transform tool. I move my cursor over one of the edges of the mask. I'll just drag it back to go ahead to conceal my title. I am going to go ahead and move the current time. It's a little bit past here. Type N to end at my work area. Press 0 of a numeric keypad or go ahead and just click on the Preview button to go ahead and do a RAM preview. And there is my title being revealed. If I think that's too fast. I just need to move the second keyframe later in time to slow down the transition. 0, RAM preview again and now there is a slower reveal.

That's kind of nice, but you know it's a little bit hard-edged. I'd like to maybe soften that transition as it fades across. Well that's simple. That's the Mask Feather parameter. As I mentioned before you can type two Ms to reveal all the mask parameters or Mask Feather has its own shortcut. F reveals the Mask Feather. I'll go ahead and scrub it to soften the edge. You have to be careful of where your mask is because if you soften it too much it can start to fade out from the top and bottom in addition left and right. This is a case where I might want to go back to zero, unlock the X and Y dimensions on my Mask Feather, and just it feather it horizontally, not vertically.

The X-dimension is the horizontal dimension, so I am going to go ahead and scrub just that value to feather that out, and now when I press 0 to RAM preview I get a much softer reveal. You have to be careful where your mask is in relationship to the edge of a layer, because there is a possibility that the feather is so broad it might be cutting off part of your title. So I'm going to go ahead and press U to reveal my keyframes, go to my last keyframe, and make sure my mask edge is far enough that the feather is not cutting into my title. When I get safely beyond there, tighten it up as necessary there not to fade on my title.

I don't want to drag these out too far, because if I do that, well the mask is going to animate all the way out here and my time is going to be off. Just do it enough so I can see my whole title without it being trimmed off by my feather. That looks good. Press 0 to RAM preview and there's my simple reveal. Now that's the easy way to animate a mask. If I wanted to, in addition to go ahead and using this Free Transform tool, I go ahead and double-click my mask again and select an individual mask Vertex.

I'll Shift+Click to deselect, click again to select just that point and I could do all sorts of strange mask shape reveals and have some fun with this. But in this case I just wanted to do a simple wipe, so I double-click the mask and use the Free Transform to go ahead and just wipe the mask across. Be careful playing around, because you might accidentally keyframes you didn't intend to. Either Undo or just go ahead and turn off that keyframe by clicking on this little diamond in between your keyframe navigators. That's all there is to it.

Show transcript

This video is part of

Image for After Effects Apprentice 05: Creating Transparency
After Effects Apprentice 05: Creating Transparency

38 video lessons · 12699 viewers

Chris Meyer and Trish Meyer
Author

 
Expand all | Collapse all
  1. 3m 17s
    1. Overview
      1m 17s
    2. Using the exercise files
      2m 0s
  2. 28m 53s
    1. Creating basic mask shapes
      5m 7s
    2. Using advanced parametric shapes
      3m 35s
    3. Basic mask shape editing
      4m 35s
    4. Masking in the Layer panel
      1m 55s
    5. Working with mask parameters
      4m 0s
    6. Animating masks
      5m 52s
    7. Creating vignettes
      3m 49s
  3. 25m 56s
    1. Masking with the Pen tool
      6m 44s
    2. Editing a mask path
      6m 19s
    3. Using RotoBezier masks
      4m 32s
    4. Targeting masks for animation
      3m 13s
    5. Setting the first vertex point
      5m 8s
  4. 19m 7s
    1. The basics of variable-mask feathering
      7m 33s
    2. Exploring variable-mask feathering options
      5m 56s
    3. Exploring visual effects applications
      5m 38s
  5. 7m 55s
    1. Exploring mask modes
      3m 58s
    2. Fading mask opacity
      3m 57s
  6. 11m 48s
    1. Using targeted treatments
      2m 35s
    2. Filling mask shapes
      3m 8s
    3. Following mask paths
      6m 5s
  7. 13m 31s
    1. Using alpha mattes
      3m 48s
    2. Grouping track matte pairs
      3m 40s
    3. Working with luma mattes
      3m 52s
    4. Animating mattes
      2m 11s
  8. 10m 0s
    1. Using Stencil Luma
      3m 5s
    2. Using Stencil Alpha
      2m 5s
    3. Using effects with stencils
      2m 20s
    4. Stacking stencils
      2m 30s
  9. 8m 23s
    1. Quizzler challenges
      1m 18s
    2. Quizzler solution one: One word at a time
      3m 53s
    3. Quizzler solution two: Stroke drawing direction
      3m 12s
  10. 11m 18s
    1. Idea corner one: More masks and effects
      2m 50s
    2. Idea corner two: Transition effects
      3m 44s
    3. Idea corner three: Sequenced layers as mattes
      4m 44s
  11. 16m 29s
    1. Understanding track matte rendering order
      5m 48s
    2. Exploring mask interpolation
      10m 41s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed After Effects Apprentice 05: Creating Transparency.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.