New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

After Effects Apprentice 08: Nesting and Precomposing
Illustration by John Hersey

Exploring Collapse Transformations


From:

After Effects Apprentice 08: Nesting and Precomposing

with Chris Meyer and Trish Meyer

Video: Exploring Collapse Transformations

When we were working with the Continuous Rasterization in the previous two movies, you might have noticed that this switch had a second name attached to it, Collapse Transformations, and that's what we'll discuss in this movie. I want to go ahead and close all my comps, I'm still in Render Order.aep, and I'm going to open up the comp Collapse Transformations, Collapse*starter. Here we have a very simple composite of a watch face over a background. The watch face has been set to Overlay mode, so it has an interesting interaction with the background. This is the composite in Normal mode and here's the composite in Overlay mode. And we also, see that we have an effect applied, namely a drop shadow, and the transforms are pretty much at their defaults including a 100% scale. So After Effects is following it's normal order of applying a drop shadow, calculating the transforms, then using the blending mode to composite this layer on top of those underneath. Let's play a couple of games here. And let's set the scale down to a small value such as 10%, one tenth of the original size. Then I'm going to take this scaled and affected layer and pre-compose it. I'm going to right-click on it and choose Pre-compose, and select the option Move all attributes into the new composition; that means the effect, the blending mode, and the transforms will all be moved into this pre-comp, and I'm even going to name it watch face pre-comp. I'll click OK, and then I say, well it's too small. Let's scale it back up again. So I'll press S, and put the scale up to 1000%, ten times the original scale compared to the one tenth scale I have on the pre-comp. Press Enter and the result is something that looks pretty ugly. Not at all like our original composite. Two things are wrong: one, the watch face is looking very pixelated and very aliased, and two, we're not seeing our blending mode, and in fact we don't have a blending mode set here. Let's understand what's going on. I'm going to tap Shift to bring up my mini comp navigator and go into the pre-comp. In this pre-comp, the effect and the scale are being calculated, as well as the blending mode. And you can press F4 to toggle in between the switches and modes columns. If I turn on my Transparency Grid you'll even see a very slight drop shadow off of this scaled-down layer. When you have a chain of compositions, normally After Effects will calculate the pre-comp, convert the results into a pixel-based image which is the same size as the pre-comp, then pass that pixel-based layer onto the master composition, where it's used as a normal layer. Now the rules of normal pixel-based layers apply. One, scaling past 100% results in a drop in quality and some pretty nasty aliasing. Second, the blending mode is back here in the pre-comp, and since there is no layers to interact with we're not seeing its result. And up here in main comp, we don't get the results of the overlay set in the base comp. We can change it to overlay here, but we still have a very pixelated layer. Well there is a workaround for some of this. I'll set it back to Normal for now. I'm going to press F4 to bring forward the Switches column again. For pre-comp layers, this little sunburst icon becomes the Collapse Transformations switch. Not continuously rasterized. That's just for vector-based layers, but collapse transformations. And when I enable it, watch what happens. We get back a resolution. We get back a blending mode. Well, what's going on? Continuous Rasterization means that one of the rasterization or convert to pixel steps is being skipped. I'll tap Shift key. Previously the pre-comp was converted to pixels at this stage, then passed on to our master comp, but with Continuous Rasterization, the layers in the pre-comp are brought forward directly into the master comp. There's no conversion to pixels at this middle stage. As an additional benefit, any transformations you have applied in the master comp are combined with any transformations happening in the pre-comp. So 1000% scale times 10% scale equals 100% scale. This operation is performed only once in the master comp. So we don't have any scaled-down layer being scaled back up again, and therefore we get a cleaner image. Also, since the layers in the pre-comp are being brought directly forward to the master comp, any blending modes set up in the pre- comp will be used for that layer in the master comp, and indeed if I tap F4 to bring up the Modes column, you'll see that the Modes popup has this little dash in it saying, you can't set any modes here, modes have already been set in the pre-comp. And if I had multiple layers, all of those layers will be brought forward each with their own mode and composited in this master composition. I'll tap F4 again, you'll also notice that the quality and motion blur switches have dashes through them, meaning that the settings in the pre-comp are what's going to be obeyed. Now if you got your head wrapped around that, there are exceptions and complications. For example, what would happen if I would then apply a mask or an effect to this Pre-comp layer? Normally, any layers in this pre-comp are brought forward and calculated in the master comp, including their masks and effects. However, if you go ahead and do something like apply say Blur > Box Blur, After Effects has to do a new set of calculations. It has to convert the pre-comp into pixels before it can apply the Box Blur. The transformations are still being sent back to the pre-comp so that they're calculated only ones and we get a higher quality image, but now I'll tap Shift, some conversion of pixels need to take place here before you can apply effects to this layer or before you can mask this layer. And as a side effect of that any blending modes set in the pre-comp get ignored in the main comp because they have to be composited and converted to pixels before you can mask and apply effects. The main thing I want to get across here is if you do have nested compositions, I'll delete my mask for now, and you need to do any additional transformations, particularly scale to that pre-comp and the master comp, quite often you can buy back more image quality by enabling the Collapse Transformations switch. You can also use the pre-comp as a way of grouping multiple layers together, and treating the result as one layer in the master comp. This is particularly handy in 3D space which we'll cover in a later lesson. However, don't blindly turn the switch on for all pre-comps, because sometimes unexpected things will happen, particularly if you decide to apply additional effects or masks to this pre-comp layer.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
After Effects Apprentice 08: Nesting and Precomposing
2h 25m Intermediate Jun 29, 2011 Updated Nov 29, 2012

Viewers: in countries Watching now:

Let Chris and Trish Meyer share with you two of the core secrets required to become an efficient After Effects user: understanding the render order (the internal order of operations After Effects uses when calculating masks, effects, transformation, track mattes, and layer styles) and the use of multiple compositions where a composition may be nested into one or more other comps. This makes it easier to group layers, efficiently re-use a common element to quickly accommodate client changes, pan around large composites of multiple layers, and solve render order issues.

The After Effects Apprentice videos on lynda.com were created by Trish and Chris Meyer and are designed to be used on their own and as a companion to their book After Effects Apprentice. We are honored to host these tutorials in the lynda.com Online Training Library®.

Topics include:
  • Grouping layers by nesting and pre-composing
  • Identifying and solving render order issues
  • Navigating composition hierarchies
  • Editing a precomp while viewing the result in another composition
  • Preserving the frame rate of a nested composition
Subjects:
Video Motion Graphics Visual Effects
Software:
After Effects
Authors:
Chris Meyer Trish Meyer

Exploring Collapse Transformations

When we were working with the Continuous Rasterization in the previous two movies, you might have noticed that this switch had a second name attached to it, Collapse Transformations, and that's what we'll discuss in this movie. I want to go ahead and close all my comps, I'm still in Render Order.aep, and I'm going to open up the comp Collapse Transformations, Collapse*starter. Here we have a very simple composite of a watch face over a background. The watch face has been set to Overlay mode, so it has an interesting interaction with the background. This is the composite in Normal mode and here's the composite in Overlay mode. And we also, see that we have an effect applied, namely a drop shadow, and the transforms are pretty much at their defaults including a 100% scale. So After Effects is following it's normal order of applying a drop shadow, calculating the transforms, then using the blending mode to composite this layer on top of those underneath. Let's play a couple of games here. And let's set the scale down to a small value such as 10%, one tenth of the original size. Then I'm going to take this scaled and affected layer and pre-compose it. I'm going to right-click on it and choose Pre-compose, and select the option Move all attributes into the new composition; that means the effect, the blending mode, and the transforms will all be moved into this pre-comp, and I'm even going to name it watch face pre-comp. I'll click OK, and then I say, well it's too small. Let's scale it back up again. So I'll press S, and put the scale up to 1000%, ten times the original scale compared to the one tenth scale I have on the pre-comp. Press Enter and the result is something that looks pretty ugly. Not at all like our original composite. Two things are wrong: one, the watch face is looking very pixelated and very aliased, and two, we're not seeing our blending mode, and in fact we don't have a blending mode set here. Let's understand what's going on. I'm going to tap Shift to bring up my mini comp navigator and go into the pre-comp. In this pre-comp, the effect and the scale are being calculated, as well as the blending mode. And you can press F4 to toggle in between the switches and modes columns. If I turn on my Transparency Grid you'll even see a very slight drop shadow off of this scaled-down layer. When you have a chain of compositions, normally After Effects will calculate the pre-comp, convert the results into a pixel-based image which is the same size as the pre-comp, then pass that pixel-based layer onto the master composition, where it's used as a normal layer. Now the rules of normal pixel-based layers apply. One, scaling past 100% results in a drop in quality and some pretty nasty aliasing. Second, the blending mode is back here in the pre-comp, and since there is no layers to interact with we're not seeing its result. And up here in main comp, we don't get the results of the overlay set in the base comp. We can change it to overlay here, but we still have a very pixelated layer. Well there is a workaround for some of this. I'll set it back to Normal for now. I'm going to press F4 to bring forward the Switches column again. For pre-comp layers, this little sunburst icon becomes the Collapse Transformations switch. Not continuously rasterized. That's just for vector-based layers, but collapse transformations. And when I enable it, watch what happens. We get back a resolution. We get back a blending mode. Well, what's going on? Continuous Rasterization means that one of the rasterization or convert to pixel steps is being skipped. I'll tap Shift key. Previously the pre-comp was converted to pixels at this stage, then passed on to our master comp, but with Continuous Rasterization, the layers in the pre-comp are brought forward directly into the master comp. There's no conversion to pixels at this middle stage. As an additional benefit, any transformations you have applied in the master comp are combined with any transformations happening in the pre-comp. So 1000% scale times 10% scale equals 100% scale. This operation is performed only once in the master comp. So we don't have any scaled-down layer being scaled back up again, and therefore we get a cleaner image. Also, since the layers in the pre-comp are being brought directly forward to the master comp, any blending modes set up in the pre- comp will be used for that layer in the master comp, and indeed if I tap F4 to bring up the Modes column, you'll see that the Modes popup has this little dash in it saying, you can't set any modes here, modes have already been set in the pre-comp. And if I had multiple layers, all of those layers will be brought forward each with their own mode and composited in this master composition. I'll tap F4 again, you'll also notice that the quality and motion blur switches have dashes through them, meaning that the settings in the pre-comp are what's going to be obeyed. Now if you got your head wrapped around that, there are exceptions and complications. For example, what would happen if I would then apply a mask or an effect to this Pre-comp layer? Normally, any layers in this pre-comp are brought forward and calculated in the master comp, including their masks and effects. However, if you go ahead and do something like apply say Blur > Box Blur, After Effects has to do a new set of calculations. It has to convert the pre-comp into pixels before it can apply the Box Blur. The transformations are still being sent back to the pre-comp so that they're calculated only ones and we get a higher quality image, but now I'll tap Shift, some conversion of pixels need to take place here before you can apply effects to this layer or before you can mask this layer. And as a side effect of that any blending modes set in the pre-comp get ignored in the main comp because they have to be composited and converted to pixels before you can mask and apply effects. The main thing I want to get across here is if you do have nested compositions, I'll delete my mask for now, and you need to do any additional transformations, particularly scale to that pre-comp and the master comp, quite often you can buy back more image quality by enabling the Collapse Transformations switch. You can also use the pre-comp as a way of grouping multiple layers together, and treating the result as one layer in the master comp. This is particularly handy in 3D space which we'll cover in a later lesson. However, don't blindly turn the switch on for all pre-comps, because sometimes unexpected things will happen, particularly if you decide to apply additional effects or masks to this pre-comp layer.

Find answers to the most frequently asked questions about After Effects Apprentice 08: Nesting and Precomposing.


Expand all | Collapse all
please wait ...
Q: This course was updated on 11/29/2012. What changed?
A: We added a new chapter, "Render Order Exceptions." It contains four new movies: Continuous rasterization, The Transform effect, Collapse transformations, and Compound effects. We also added a movie that shows our premium subscribers how to use the exercise files, including the new exercise files designed for After Effects CS6.
 
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.
Upgrade now


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 Upgrade now

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

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.