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

Master controls

From: After Effects Apprentice 09: Expressions

Video: Master controls

In the last movie, we showed you how to use Effect > Expression Controls to create the user interface for an expression applied to a layer. In this movie, we're going to show you how to use Expression controls to create one set of master controls that affect multiple layers. To do that, let's go ahead and close this up, Close All, just clean up our interface, go to the Project panel and this time open up 07-Master Controls*starter. Here we have a bunch of text and a bar created using shape layers that are all boring white. And we know the client is going to want these to be different color, and we know the client has a way of changing their mind.

Master controls

In the last movie, we showed you how to use Effect > Expression Controls to create the user interface for an expression applied to a layer. In this movie, we're going to show you how to use Expression controls to create one set of master controls that affect multiple layers. To do that, let's go ahead and close this up, Close All, just clean up our interface, go to the Project panel and this time open up 07-Master Controls*starter. Here we have a bunch of text and a bar created using shape layers that are all boring white. And we know the client is going to want these to be different color, and we know the client has a way of changing their mind.

So, instead of changing the color for every one of these layers every time the client does change his/her mind, instead let's create one set of controls that can apply to all of these layers. Now I could choose one of these layers to be the layer that has these master controls, or I can create a brand-new layer that has just the controllers. In one of the previous After Effects Lessons on parenting, we mentioned that null objects made great parents, because they don't render. Well, null objects also make great Controller layers, again, because you don't need to worry about them rendering; you can just attach things to them.

So I've added my null object. I want to give it a useful name, so I go to Layer > Solid Settings--nulls are just specials versions of solids--and call this MASTER CONTROL, click OK and turn off the video switch for this layer, because I don't even need to see its outlined in the Comp panel. Now the item I want to control is Color, so with my Master Control layer selected, I'll go to Effect > Expression Controls > Color Control, and now you see I get a nice color swatch here in my Effects Control panel.

Colors in After Effects tend to default to this really bright red, which isn't NTSC safe, and it is not very pretty in the first place. I am just going to immediately change it to a different color, so that you can tell the difference between this color and any default color from any effect I am about to apply. Okay, let's change the color of this layer, REASONS TO UPGRADE. As you might remember from the Type and Music chapter, the color of a text layer--and I'll open Window > Character--is actually controlled over here in the Character panel. That means this is not a keyframed parameter.

Expressions can only be connected to things that can be keyframed, so you cannot directly control the color in the Character panel using expressions. I'll tidy this up. However, you can apply an effect and use an expression to control the effect. In this case, I want to fill this with the color. I can never remember which effect category Fill is under, so I am going to go to my Effects & Presets panel and type into the search box up top, fill. There it is, it's underneath generate. I always forget that.

I'll apply to REASONS TO UPGRADE. You see that it has that lovely default red. Type E to reveal it in the Effects Control panel and twirl it open so I've got that color exposed. What I want to do is connect this master color control to the color for this fill. To do that, just like any other expression, I'll hold down Option on Mac, Alt on Windows, click on the stopwatch next to the color, I have got my little pick whip, and I'll just drag it to the color on my master control.

I can press Enter on numeric keypad or just click off somewhere, and now you see that that text has taken on the color of my master control. And just to verify that's working, you can actually click on the swatch and drag right down here on the Timeline panel and you can see that this type changes to match that color that I am changing my master controller to. I'll put over there to a more orangey color, release, and now you can see it's automatically changed. Let's wire up another layer. This underscore is actually created with something called a shape layer.

Now, shapes are something we'll dive into in a future After Effects Apprentice lesson, but shape layers typically contain strokes and fills. In this case, it's just a simple line that's been stroked. I'll twirl that open, and lo and behold, it has a stroke color. Well, if I can keyframe it, I can attach an expression to it. Option+Click or Alt+Click. I have got the beginning of an expression. I grab my pick whip and drag it up to my color master control, click off to accept, and now you will see my stroke has taken on the same color as my master control, and I think if I change its color, both my stroke and my text change, very cool! Now you might be thing next, you just have to do the exact same thing for these three remaining text layers. Not true.

As you well know, effects can be copied and pasted between layers. Whenever you copy and paste an effect, any keyframes attached come along as well. It's no different for expressions. An expression attached to layer will also come along. So let's go ahead and select fill, Command+C or Ctrl+C to copy, go to these other layers, and then paste, paste that one, paste that line of text and then that line of text. But once I've done that, I'll go up to my master control, click on the swatch, open up my Color Picker dialog, and now I can interactively change the color for all of my layers at once, from one master control.

And trust me, this will save you so much time when a client is changing their mind about what color they want things to be. If you tie everything to one master controller, you just need to change one color instead of the color for every single layer. This has saved us lots of times on jobs as well. I click OK. By the way, one more trick I'll show you, normally when you would select a layer, the Effect Control panel changes to show the effects attached to that layer. However, the Effects Control panel does have a lock icon. So if I was to lock this layer and select another layer, that master control will remain up in the Effects Control panel.

So even though I might be working with other layers and have them selected, I can still go back up here, change my color, and everybody will update, even though that wasn't the layer that was selected up in the Effects Controls. And oh yes, color does have a little animation stopwatch and you can keyframe it as well. So you have seen how to type in expressions. You've seen how to use Effect > Expression Controls to add a user interface to expression. Well, there is yet one more trick, and that's using the sound to control your expressions.

But that requires a couple more steps. We'll show that in the next movie.

Show transcript

This video is part of

Image for After Effects Apprentice 09: Expressions
After Effects Apprentice 09: Expressions

20 video lessons · 11034 viewers

Chris Meyer and Trish Meyer
Author

 

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 09: Expressions.

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 preferences from 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.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

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.