Discover new resources and practical editing tutorials on Softlink.

How to Remove a Green Screen in After Effects

Green screen compositing (chroma keying) is one of the most common tasks in After Effects. While the process can seem complex, understanding the right tools and workflow makes the difference between a convincing composite and one that looks unfinished. This article focuses on using Keylight, After Effects' industry-standard keying plugin.

1. Setting Up Your Footage

The success of a chroma key heavily depends on the source footage. Ideal green screen footage features flat, even lighting on the background screen, no wrinkles, and proper exposure for both the subject and the screen. The subject should be far enough away from the screen to avoid green light bouncing back onto them (spill).

To begin, import your footage into After Effects and drag it onto the "Create a New Composition" icon at the bottom of the Project panel. This ensures your composition matches the frame rate and resolution of your source clip.

2. Applying Keylight

After Effects includes several keying tools, but Keylight (1.2), developed by Foundry, is the industry standard and by far the most powerful built-in option. Select your green screen footage layer in the timeline. Navigate to the top menu and select Effect > Keying > Keylight (1.2). The Keylight effect controls will appear in the Effect Controls panel.

3. Pulling a Basic Key with Screen Colour

The first step in Keylight is selecting the color you want to remove.

  1. Locate the "Screen Colour" property in the Keylight effect.
  2. Click the eyedropper icon next to it.
  3. Click on the green background in your composition window. Crucial tip: Do not click the brightest or darkest area of the green. Choose a mid-range green close to the subject.
  4. Change the "View" dropdown at the top of the Keylight plugin from "Final Result" to "Screen Matte".

The Screen Matte view changes your image to black and white. Your goal is to make the background pure black (transparent) and the subject pure white (opaque). Grey areas indicate partial transparency.

4. Refining the Key: Screen Gain and Balance

If your Screen Matte isn't perfect immediately (and it rarely is), you need to refine it. Screen Gain increases the removal of the key color. Increasing it slightly can help eliminate lingering green areas, but pushing it too high will destroy the fine details in your subject's edges. Screen Balance affects how the green channel is weighed against the red and blue channels. Usually, the default is fine, but adjusting it slightly can help if your key is struggling with specific skin tones or clothing colors.

5. Managing the Matte: Clip Black and Clip White

The most important adjustments happen in the "Screen Matte" settings.

Twirl down the "Screen Matte" section. Here you will find Clip Black and Clip White. While looking at your Screen Matte view (black and white):

  • Slowly increase Clip Black to clean up any grey static or noise in the background area. The background should become pure solid black.
  • Slowly decrease Clip White to clean up any grey areas inside the subject. The subject should become pure solid white.

Warning on Clipping

Do not over-clip. Pushing Clip Black too high or Clip White too low will result in hard, jagged edges and completely remove fine details like hair or motion blur. Make the adjustments as subtle as possible to achieve a clean matte.

6. Edge Refinement and Spill Suppression

Once you are satisfied with the matte, change the View back to "Final Result". You may notice some green spill on the subject's edges or a slightly harsh outline. To fix this, After Effects provides two excellent companion plugins. Add Key Cleaner after Keylight to reduce edge chatter and restore lost detail. Then, add Advanced Spill Suppressor to automatically remove any lingering green color cast on the subject.

7. Adding a Background

With the green removed, it's time to composite. Import your background footage or image and place it below your keyed subject layer in the timeline. Adjust the scale and position of the background so that the perspective matches the angle at which the subject was shot.

8. Color Matching Foreground to Background

A composite will never look real if the lighting on the subject doesn't match the background environment. Add the Lumetri Color effect to your keyed subject layer. Adjust the exposure, contrast, temperature, and tint so the subject looks like they belong in the new environment. If the background is a moody evening scene, the subject shouldn't be brightly lit with daylight color temperatures.

9. Common Keying Problems

Even with perfect technique, you may face challenges:

  • Fine Hair Details: If Keylight struggles with wispy hair, you may need to duplicate the footage, create a soft "core" key for the body, and a separate, highly finessed key specifically for the hair edges.
  • Shadows: If you need to keep shadows cast on the green screen, you'll need to create a separate shadow pass using luminance keying, or generate a synthetic shadow using effects like Radial Blur and Drop Shadow.
  • Reflections: Reflections in glasses or eyes are difficult. You may need to mask these out manually if they reflect the green screen heavily.

10. When to Use Roto Brush Instead

Keylight relies on a consistent color. If your footage doesn't have a clean green screen—perhaps it's a messy background, or the screen is terribly lit and full of shadows—Keylight will fail. In these situations, After Effects' Roto Brush 2.0 or 3.0 is the better tool. The Roto Brush uses AI to track the subject and separate them from any background, regardless of color. While more processor-intensive, it's a lifesaver for non-ideal shooting conditions.

Removing a green screen is an iterative process. By systematically applying Keylight, adjusting the Screen Matte, refining the edges, and color correcting the final composite, you can achieve professional, invisible visual effects in your After Effects projects.