Our website will be down for scheduled maintenance on Thursday, September 18, at 11 p.m. Pacific Time and should be back up by Midnight. We apologize for any inconvenience.

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

Working with compound effects

From: After Effects Apprentice 08: Nesting and Precomposing

Video: Working with compound effects

I would like to conclude this section on render order exceptions by showing you one more case where the way After Effects renders layers may not be exactly what you expected. I've opened up the composition Compound Effects.aep, and I'm going to open up the one comp, Compound Effects*starter. Here we have a pulley and a background layer. Let's say our boss would like to use this pulley as a textured embossed bug in one corner of the video. I'm going to press the apostrophe to bring up the action and title safe grids, select my pulley, tuck it down here, down in the very edge of action safe to make sure it's not cropped off by the bezel of any old TV, type S for scale, scale down a little bit and position it, and you can do this to taste. I am going to go ahead and make it fairly innocuous and put it down here in the corner like that. And just for good measure I'm going to add an Animation Preset to it called Rotate Over Time. This is a behavior that automatically rotates a layer as time marches on. It's initial speed is a bit on the slow side, let's bump that up to something like say maybe 25 degrees a second. I'll RAM preview that. Yeah that's something nice and subtle in the corner. Okay, I need to turn this into an embossed bug. The effect to do that is called Texturize. I'm going to select the layer that's going to get the embossing, the background layer, then apply Effect > Stylize > Texturize. Now Texturize is what's known as a compound effect. It's an effect you apply to one layer, but which looks at another layer for information on what to do, how to process the layer it has been applied to. Compound blur and displacement map are other examples of compound effects. In this case, I want to texturize my background layer based on the Pulley layer. So I'll select that in the popup, and I don't get the result I expect at all. Now what are my choices here? I've got Light Direction. That doesn't give me what I want. Contrast doesn't give me what I want. Texture Placement; that must be it. You must be thinking to yourself, Stretch Texture to Fit, no. Center Texture, no. Okay, it's time to stop just clicking around and understand what After Effects is doing underneath the hood. Since compound effects can point to themselves as their control layer, they cannot use the results of a layer after masks, effects, and transforms have already been applied. Otherwise you get into what's known as a deadly embrace. You'd have an affect that can't process until you see the result of your own effect. Therefore, what After Effects does for compound effects is it looks at the Control layer before any masks, effects, or transforms have been applied. It looks at the layer in its original state. And if you want to know what the layer in it's original state looks like, double-click it to open it up and it's Layer panel. That's what it looks like, and that's not what we want. What we want is this scaled, repositioned, and animated layer. Okay, there is two important rules to know whenever you work with compound effects. One, a control layer should be the exact same size as the layer you're applying the effect to, that way there's no recalculation of trying to match up one layer's dimensions to another layer's dimensions. They are the same. It's a one-to-one match. Two, any effects, masks, transformations including animation that you want happening to the Control layer must happen in a pre-comp before you get to this composition where the layers looked at in it's original state. In this case a pre-comp layer's original state is after all the calculations have taken place into the pre-comp. So I will set my pulley, right-click, choose Pre -compose, and go for the Move all attributes option, that's going to move my effect, my transformations, anything else I've done to this layer into the pre-comp. It also creates a composition same size as a source comp, and this source comp happens to be the same size as my background layer. It's important that this pre-comp end up the same size as the layer getting the compound effect. Let me call this pulley bug precomp, click OK. All right, things look a little bit more promising now, I'm going to press apostrophe to turn off the action and title safe. And next, I'm going to turn off the Video switch; the visibility for my bug pre-comp. I don't need to see it. I just want to see the result of it's effect on my main layer, and there is the final effect. I'll press 0 to RAM preview and now I have a nice animated bug in exactly the place I want it to be, the right size of our animation affecting the layer in my main comp. So again those two rules are, the control layer should be the same size and any processing has to take place in a pre-comp.

Working with compound effects

I would like to conclude this section on render order exceptions by showing you one more case where the way After Effects renders layers may not be exactly what you expected. I've opened up the composition Compound Effects.aep, and I'm going to open up the one comp, Compound Effects*starter. Here we have a pulley and a background layer. Let's say our boss would like to use this pulley as a textured embossed bug in one corner of the video. I'm going to press the apostrophe to bring up the action and title safe grids, select my pulley, tuck it down here, down in the very edge of action safe to make sure it's not cropped off by the bezel of any old TV, type S for scale, scale down a little bit and position it, and you can do this to taste. I am going to go ahead and make it fairly innocuous and put it down here in the corner like that. And just for good measure I'm going to add an Animation Preset to it called Rotate Over Time. This is a behavior that automatically rotates a layer as time marches on. It's initial speed is a bit on the slow side, let's bump that up to something like say maybe 25 degrees a second. I'll RAM preview that. Yeah that's something nice and subtle in the corner. Okay, I need to turn this into an embossed bug. The effect to do that is called Texturize. I'm going to select the layer that's going to get the embossing, the background layer, then apply Effect > Stylize > Texturize. Now Texturize is what's known as a compound effect. It's an effect you apply to one layer, but which looks at another layer for information on what to do, how to process the layer it has been applied to. Compound blur and displacement map are other examples of compound effects. In this case, I want to texturize my background layer based on the Pulley layer. So I'll select that in the popup, and I don't get the result I expect at all. Now what are my choices here? I've got Light Direction. That doesn't give me what I want. Contrast doesn't give me what I want. Texture Placement; that must be it. You must be thinking to yourself, Stretch Texture to Fit, no. Center Texture, no. Okay, it's time to stop just clicking around and understand what After Effects is doing underneath the hood. Since compound effects can point to themselves as their control layer, they cannot use the results of a layer after masks, effects, and transforms have already been applied. Otherwise you get into what's known as a deadly embrace. You'd have an affect that can't process until you see the result of your own effect. Therefore, what After Effects does for compound effects is it looks at the Control layer before any masks, effects, or transforms have been applied. It looks at the layer in its original state. And if you want to know what the layer in it's original state looks like, double-click it to open it up and it's Layer panel. That's what it looks like, and that's not what we want. What we want is this scaled, repositioned, and animated layer. Okay, there is two important rules to know whenever you work with compound effects. One, a control layer should be the exact same size as the layer you're applying the effect to, that way there's no recalculation of trying to match up one layer's dimensions to another layer's dimensions. They are the same. It's a one-to-one match. Two, any effects, masks, transformations including animation that you want happening to the Control layer must happen in a pre-comp before you get to this composition where the layers looked at in it's original state. In this case a pre-comp layer's original state is after all the calculations have taken place into the pre-comp. So I will set my pulley, right-click, choose Pre -compose, and go for the Move all attributes option, that's going to move my effect, my transformations, anything else I've done to this layer into the pre-comp. It also creates a composition same size as a source comp, and this source comp happens to be the same size as my background layer. It's important that this pre-comp end up the same size as the layer getting the compound effect. Let me call this pulley bug precomp, click OK. All right, things look a little bit more promising now, I'm going to press apostrophe to turn off the action and title safe. And next, I'm going to turn off the Video switch; the visibility for my bug pre-comp. I don't need to see it. I just want to see the result of it's effect on my main layer, and there is the final effect. I'll press 0 to RAM preview and now I have a nice animated bug in exactly the place I want it to be, the right size of our animation affecting the layer in my main comp. So again those two rules are, the control layer should be the same size and any processing has to take place in a pre-comp.

Show transcript

This video is part of

Image for After Effects Apprentice 08: Nesting and Precomposing
 

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 08: Nesting and Precomposing.

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.