Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design

How to Optimize Projects in Adobe After Effects CC

This chapter from Adobe After Effects CC Visual Effects and Compositing Studio Techniques examines in close detail how image data flows through an After Effects project. It’s full of the information you need to help you make the most of After Effects.

Read Adobe After Effects CC Visual Effects and Compositing Studio Techniques and thousands of other books and videos on Creative Edge. Start a free trial today.



This chapter is from the book
  • Build a system that even a fool can use and only a fool will want to use it.
  • —George Bernard Shaw

Sometimes, like a master chef—you can prep items and consider them “done” before the guests are in the restaurant and it’s time to cook the meal. At other times, like a programmer, you must isolate and debug elements of a project, creating controlled tests when necessary to understand how things are working. This chapter provides the technical knowledge to allow the artistry to shine.

Work with Multiple Comps and Projects

A modestly complicated shot can entail thousands of individual edits and decisions, and it’s easy to lose track of assets when projects get complicated. This section demonstrates

  • how and why to work with a project template
  • how to organize a complex, multiple-composition pipeline
  • shortcuts to help maintain orientation within the project as a whole

These tips are especially useful if you’re someone who understands compositing but sometimes finds After Effects disorienting.

Precomping and Composition Nesting

Precomposing is often regarded as the bane of After Effects, because vital information is hidden from the current comp’s Timeline in a nested comp. Artists may sometimes let a composition become unwieldy, with dozens of layers, rather than bite the bullet and send a set of those layers into a precomp. Yet precomping is both an effective way to organize the timeline and a key to problem solving and optimization in After Effects. Motion graphics comps can involve the animation and coordination of hundreds of animated elements. In a visual effects context, however, if your VFX composition has more than 20 or so layers, you’re doing precomping wrong, making your work way less efficient overall.

Typically, precomping is done by selecting layers of a composition to group together, and choosing Precompose from the Layer menu (Ctrl+Shift+C/Cmd+Shift+C). Two options appear (the second option is grayed out if multiple layers have been selected): to leave attributes (effects, transforms, masks, paint, blending modes) in place, or transfer them into the new composition.

Why Precomp?

Precomping prevents a composition from containing too many layers to manage in one timeline, and it also adds a few other advantages. You can

  • Reuse a set of elements.
  • Fix render order problems. For example, masks are always applied before effects in a given layer, but a precomp can contain an effect so that the mask in the master comp follows that effect in the render order.
  • Organize a project by grouping interrelated elements.
  • Specify an element or set of layers as completed (and even pre-render them, as discussed later in this chapter).

Many After Effects artists are already comfortable with the idea of precomping but miss that last point. As you read through this, think about the advantages of considering an element finished, even if only for the time being.

The Project Panel: Think of It as a File System

How do you like to organize your system—tidy folders for everything or files strewn across the desktop? Personally, I’m most content with a project that is well organized, even if I’m the only one likely to work on it. When sharing with others, however, good organization becomes essential. The Project panel mirrors your file system (whether it’s Explorer or Finder), and keeping it well organized and tidy can clarify your thought process regarding the project.

I know, I know, eat your vegetables, and clean your room. Imagine that the person next opening your project is you, but with a case of amnesia—actually, that basically is you after a sufficient period of time.

Figure 4.1 shows a couple of typical project templates containing multiple compositions to create one final shot, although these could certainly be adapted for a group of similar shots or a sequence. When you need to return to a project over the course of days or weeks, this level of organization can be a lifesaver.

Figure 4.1

Figure 4.1. A complex project, such as a shot for a feature film, might be generically organized (top) to include numbering that reflects pipeline order and multiple output comps with no actual edits, just the necessary settings. At minimum (bottom), you should have Source and Precomps folders, as well as a Reference folder, to keep project contents tidy.

Here are some ideas to help you create your own comp template:

  • Create folders, such as Source, Precomps, and Reference, to group specific types of elements.
  • Use numbering to reflect comp and sequence order so that it’s easy to see the order in the Project panel.
  • Create a unique Final Output comp that has the format and length of the final shot, particularly if the format is at all different from what you’re using for work (because it’s scaled, cropped, or uses a different frame rate or color profile).
  • Use guide layers and comments as needed to help artists set up the comp (Figure 4.2).

    Figure 4.2

    Figure 4.2. Here is a series of non-rendering guide layers to define action areas and color.

  • Organize Source folders for all footage, categorized as is most logical for your project.
  • Place each source footage clip into a precomp, so that changes to source footage—where it is replaced for some reason—are easier to handle without causing some sort of train wreck.

The basic organization of master comp, source comp, and render comp seems useful on a shot of just about any complexity, but your template can include a lot more than that: custom expressions, camera rigs, color management settings, and recurring effects setups.

Manage Multiple Comps from the Timeline

Ever had that “where am I?” feeling when you’re working with a series of nested comps? That’s where Mini-Flowchart, or Miniflow, comes in. Simply press the Tab key with the Timeline panel displayed to enable it; alternatively, you can click the miniflow_icon.jpg Miniflow button.

Miniflow (Figure 4.3) shows only the nearest neighbor comps, but click on the flow arrows at either end and you navigate up or down one level in the hierarchy. Click on any arrows or items in between the ends and that level is brought forward. You’re even free to close all compositions (Ctrl+Alt+W/Cmd+Opt+W), and then reopen only the ones you need using this feature.

Figure 4.3

Figure 4.3. By default, the comp order is shown flowing right to left. The reason for this is probably that if you open subcomps from a master comp, the tabs open to the right; however, you may want to choose Flow Left to Right in Miniflow’s panel menu instead.

What about cases where you want to coordinate work in a subcomp while seeing the result in the master comp? The Lock icon lockicon.jpg at the upper left of the Composition viewer lets you keep that Composition viewer forward while you open another composition’s Timeline panel and close its view panel. Lock the master comp and double-click a nested comp to open its Timeline panel; as you make adjustments, you see the result directly in the master comp.

Ctrl+Alt+Shift+N (Cmd+Opt+Shift+N) creates two Composition viewers side by side, and locks one of them, for any artist with ample screen real estate who wants the best of both worlds.

To locate a comp in the Project panel, you can

  • select an item in the Project panel; click the caret to see where the item is used, along with the number of times, if any, the item is used in a comp (Figure 4.4)
    Figure 4.4

    Figure 4.4. Click the caret next to the total number of times an item is used to see a list of where it is used.

  • context-click an item in the Project panel and choose Reveal in Composition; choose a composition and that comp is opened with the item selected
  • context-click a layer in the timeline and choose Reveal Layer Source in Project to highlight the item in the Project panel
  • context-click in the empty area of a timeline and choose Reveal Composition in Project to highlight that comp in the Project panel (igure 4.5)

    Figure 4.5

    Figure 4.5. Find the empty area below the layers in the timeline and context-click; you can reveal the current comp in the Project panel.

  • type the name of the comp in the Project panel search field

Ways to Break the Pipeline

Precomping solves problems, but it can also create problems—or at least inconveniences. Here are a few ways that render order can go wrong:

  • Some but not all properties are to be precomped, but others must stay in the master comp: With precomping it’s all or nothing, leaving you to rearrange properties individually.

  • Un-nesting: Changed your mind? Restoring precomped layers to a parent composition is a manual (and thus error-prone) process, due to the difficulty of maintaining proper dependencies between the two (for example, if the nested comp has also been scaled, rotated, and retimed).
  • 3D nesting: Do the layers being precomped include blending modes or 3D layers, cameras, or lights? Their behavior changes depending on the Collapse Transformations setting in downstream comps (detailed in the next section).

  • Comp settings nesting: Is there motion blur, frame blending, or vector artwork in the subcomp? Switches in the master composition affect their behavior, as do settings on each nested layer, and this relationship changes depending on whether Collapse Transformations is toggled on.
  • Layer timing (duration, In and Out points, frame rate) and dimensions can differ from the master comp: When this is unintentional, mishaps happen: Layers end too soon or are cropped inside the overall frame, or keyframes in the precomp fall between those of the master, wreaking havoc on tracking data, for example.
  • Duplicating a comp that contains subcomps: The comp is new and completely independent, but the nested comps are not (see Tip on this page).

No wonder people avoid precomping. But there is hope if you recognize any difficulty and know what to do, so that inconveniences don’t turn into deal-breakers.

Boundaries of Time and Space

Each composition in After Effects contains its own fixed timing and pixel dimensions. This adds flexibility for animation but if anything reduces it for compositing. Most other compositing applications (such as Nuke) have no built-in concept of frame dimensions or timing and assume that the elements match the plate, as is often the case in visual effects work.

Therefore it is helpful to take precautions:

  • Make source compositions longer than the shot is ever anticipated to be, so that if it changes, timing is not inadvertently truncated.
  • Enable Collapse Transformations to allow the nested composition to ignore its boundaries (Figure 4.6).

    Figure 4.6

    Figure 4.6. The nested comp has a blue background and the leg of the letter “p” extends outside its boundaries (top); a simple quick fix is to enable Collapse Transformations, and the boundaries of the nested comp are ignored (bottom).

  • Add the Grow Bounds effect if Collapse Transformations isn’t an option (see the “Grow Bounds” sidebar on page 109).

Collapse Transformations is the most difficult of these to get your head around, so here is a closer look.

Collapse Transformations

In After Effects, when a comp is nested in another comp, effectively becoming a layer, the ordinary behavior is for the nested comp to be rendered completely before the layer can be adjusted in any form in the master comp.

However, there are exceptions. Keyframe interpolations, frame blending, and motion blur are all affected by the settings of the master comp—they use its frame rate, and thus keyframe timing (which can become tricky; see the next section). 3D position data and blending modes, on the other hand, are not passed through unless Collapse Transformations is enabled. Enable the toggle and it is almost as if the precomposed layers reside in the master comp—except that any 3D camera or lighting in the subcomp is overridden by the camera and lights in the master comp.

Any layer with Collapse Transformations enabled loses access to blending modes—those in the subcomp take precedence (and you can’t set two blending modes to one layer, obviously). Now here comes the trickiest part: Apply any effect to the layer (even Levels with the neutral defaults, which doesn’t affect the look of the layer) and you force After Effects to render the collapsed layer, making blending modes operable. It is now what the Adobe developers call a parenthesized comp. Such a nested comp is both collapsed and not: You can apply a blending mode, but 3D data is passed through (Figure 4.7).

Figure 4.7

Figure 4.7. You’re not supposed to be able to apply blending modes to ray-traced and other 3D scenes. You can precomp such a scene and enable Collapse Transformations so that all of its ray-traced 3D qualities are passed through, but you still can’t apply a blending mode such as Add (shown here). However, if you add a simple effect, such as Levels, unadjusted, transformations and shading are still passed through—occasionally a handy trick.

So, if you need to collapse transformations but retain 3D data, apply any effect—even one of the Expression Controls effects that don’t by themselves do anything—to parenthesize the comp.

Nested Time

After Effects is not rigid about time, but digital video—whether source or output—definitely is. You can freely mix and change frame rates among compositions without changing the timing, as has been shown. However, because your source clips always have a very specific rate, pay close attention when you

  • import an image sequence
  • create a new composition
  • mix comps with different frame rates

In the first two cases, watch out for careless errors. But you might actually want to maintain specific frame rates in subcomps, in which case you must set them deliberately on the Advanced tab of the Composition Settings dialog, as follows.

Advanced Composition Settings

In addition to the Motion Blur settings covered in detail in Chapter 8, Composition Settings > Advanced contains two toggles that influence how time and space are handled when one composition is nested into another.

Preserve Frame Rate maintains the frame rate of the composition wherever it goes—into another composition with a different frame rate setting or into the Render Queue with a specific, alternate frame rate set there (as was mentioned in Chapter 1, it can be done). So if a simple animation cycle looks right at 4 frames per second (fps), it won’t be frame blended across the higher frame rate, but will preserve the look of 4 fps.

Preserve Resolution When Nested controls what is called concatenation. Typically, if an element is scaled down in a composition that is then nested into another comp and scaled back up, the two operations are treated as one, so that no data loss occurs via quantization. This is usually a good thing. If the data in the subcomp is to appear pixelated, as if it were scaled up from a lower-resolution element, this toggle preserves the chunky pixel look.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020