> ## Content Index
> Fetch the complete content index at: https://aftereffectsclub.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to remove a green screen in After Effects
- URL: https://aftereffectsclub.com/green-screen-after-effects/
- Published: 2026-11-01T14:25:40.000Z
- Updated: 2026-11-05T00:56:28.000Z
- Description: Apply the included Keylight preset, sample the green, preserve hair in the matte and clear spill. Add garbage and hold-out masks where the shot needs them, then place the new background below.
- Author: Ethan Brooks
- Tags: Keying, roto and tracking

To remove a green screen in After Effects, select the footage layer and apply the Keylight + Key Cleaner + Advanced Spill Suppressor preset. Sample the green with Keylight's Screen Colour eyedropper, refine the matte, then enable Advanced Spill Suppressor if the subject has a green fringe. Place the replacement background on a layer below the keyed footage.

I'd start with [the included three-effect preset](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/work-with-keying-effects/keying-effects.html?ref=aftereffectsclub.com) because it sets the effect order and links the spill colour to Keylight's sample. One colour stays in charge. Uneven lighting, compression and green clothing still need separate attention; a stronger key can erase detail you meant to keep.

![Four panels in a row showing one person from behind: first against a green backdrop, second as a white silhouette on black whose hair strands thin out toward gray at the tips, third over a plain magenta backdrop with clean hair edges, fourth over an evening sky and skyline. Under the last panel, two layer bars with the keyed clip above the background.](https://storage.ghost.io/c/93/1e/931ecadb-86fa-4092-9a2d-733ed6274523/content/images/2026/11/green-screen-after-effects-key-stages-provenance-1e35079c2b82967b.webp)

The same frame at each stage, for placing a fault: a gray speck inside the white silhouette belongs to the key, a green rim on the hair over the plain backdrop belongs to spill removal. [Open the keying stages at full size](https://storage.ghost.io/c/93/1e/931ecadb-86fa-4092-9a2d-733ed6274523/content/images/2026/11/green-screen-after-effects-key-stages-provenance-1e35079c2b82967b.webp?ref=aftereffectsclub.com).

## What the footage gives the key to work with

[Even lighting, an unwrinkled screen and lightly compressed footage](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/keying/keying.html?ref=aftereffectsclub.com) give the key more useful colour detail. Adobe recommends the least colour subsampling available, such as 4:2:2 rather than 4:2:0 or 4:1:1\. With footage already recorded, inspect what you have: an uneven screen leaves patches in the matte, while compression can make its edge crawl between frames.

Use Keylight for a green or blue screen that is distinct from the subject. If there is no separable screen, use rotoscoping or [Object Matte](https://helpx.adobe.com/after-effects/desktop/roto-brush-and-refine-matte/roto-brush/object-matte.html?ref=aftereffectsclub.com) instead; sampling one colour won't isolate a person from a busy room. Start with a loose garbage mask when stands, screen edges or badly lit corners lie outside the subject's movement.

## Before keying: the comp, the clip and the hardest frame

The steps below assume this state:

- **A composition built from the green-screen clip.** Drag the clip onto the Create a new composition button at the bottom of the Project panel, or select it and choose File > New Comp From Selection. The [composition settings match that footage](https://helpx.adobe.com/after-effects/desktop/work-with-compositions/composition-settings/composition-basics.html?ref=aftereffectsclub.com). This walkthrough starts with a fresh footage layer; keep a project copy when adapting an existing composite, and preserve its animation.
- **The new background imported into the Project panel** but not placed in the composition yet. Until the key is clean, a flat colour shows its faults more plainly than a busy picture does.
- **A background colour that is not green.** Composition > Composition Settings (Ctrl + K on Windows, Command + K on macOS) has a Background Color swatch. Choose a strong colour that appears nowhere on the subject, so every pixel the key leaves behind stands out. [Adobe suggests this temporary change, or a background layer behind the clip, for seeing transparency while keying.](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/keying/keying.html?ref=aftereffectsclub.com)
- **The footage layer selected in the Timeline panel**, with Effect Controls open and the Composition panel visible. [F3 opens or closes Effect Controls](https://helpx.adobe.com/after-effects/desktop/get-started/keyboard-shortcuts/keyboard-shortcuts-reference.html?ref=aftereffectsclub.com) for the selected layer. The eyedropper will sample in the Composition panel.
- **The current-time indicator on the hardest frame:** loose hair, a hand blurred by motion, smoke or glass. Adobe's advice is to set the keying controls on the most intricate frame; with constant lighting, settings that work there hold for the whole shot.

## Draw a rough garbage matte around the subject

A [garbage matte](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/keying/keying.html?ref=aftereffectsclub.com) is a loose mask on the footage layer. It keeps the area around the subject while excluding stands, the screen's edges and other material the key shouldn't have to remove. Leave enough room for the subject throughout the shot; an exact outline turns this into rotoscoping.

1. With the footage layer selected, choose the Pen tool in the toolbar. Click a loose shape around the subject in the Composition panel, then click the first point to close it. Keep hair, hands and props inside the shape for the entire shot.
2. Leave the mask in Add mode, the default, so everything outside the shape turns transparent. The mode menu sits next to the mask name in the Timeline panel.
3. Press F to show only Mask Feather and add a modest feather. [Adobe's page on masks](https://helpx.adobe.com/after-effects/desktop/work-with-transparency-and-compositing/work-with-alpha-channels-and-masks/alpha-channels-masks-mattes.html?ref=aftereffectsclub.com) describes the feather as straddling the mask edge, half inside and half outside, and since this edge runs through green the key removes anyway, it rarely needs much.

The mask path is a property like any other: it holds one shape at one frame and can hold another at a later frame. When the subject walks or leans out of the shape, the path has to follow:

- **Track a subject that keeps its shape.** Select the mask in the Timeline panel and use Track selected masks forward in its Mask Path controls. Return to the starting frame, then track backward to cover the earlier frames too. Animation > Track Mask opens the Tracker panel, where Position, Scale & Rotation is one available method. [Adobe's mask tracking instructions](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/track-mask/rigid-mask-tracking.html?ref=aftereffectsclub.com) require inspection for drift; stop, correct the mask at the problem frame and continue.
- **Animate Mask Path by hand when the silhouette changes.** At the starting frame, enable its inactive stopwatch once. Move to another frame and adjust the points; the active stopwatch adds a keyframe. Check the frames between your adjustments, especially at the widest reach of arms or hair. [Turning an active stopwatch off removes all of that property's keyframes](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/animation-keyframes/setting-selecting-deleting-keyframes.html?ref=aftereffectsclub.com), so leave it enabled while refining the path.

## Apply Keylight and its two helpers in one drag

1. In the Effects & Presets panel, type `key` in the search box at the top. Among the results is the animation preset Keylight + Key Cleaner + Advanced Spill Suppressor, which lives in the Image-Utilities presets folder.
2. Drag the preset onto the clip layer in the Timeline, Composition or Effect Controls panel, or keep the layer selected and double-click the preset.

Expected result in Effect Controls: three effects stacked in this order, Keylight (1.2), Key Cleaner and Advanced Spill Suppressor, with Advanced Spill Suppressor switched off, as [Adobe's steps for the Keylight preset](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/work-with-keying-effects/keying-effects.html?ref=aftereffectsclub.com) describe. Keylight's View is already set to Intermediate Result, and that setting matters. [Adobe's green-screen cleanup tutorial](https://www.adobe.com/learn/after-effects/web/fix-green-screen-footage?ref=aftereffectsclub.com) explains that Keylight's own spill suppression changes the RGB by default, while Intermediate Result applies the key and leaves the colour alone, which is what Key Cleaner and Advanced Spill Suppressor need to work on.

Effect > Keying > Keylight (1.2) adds Keylight on its own. The preset also adds its two helpers and sets the working view. [Keylight (1.2) is included with After Effects](https://helpx.adobe.com/after-effects/desktop/apply-effects-and-animation-presets/effects-and-animation-presets/effect-list.html?ref=aftereffectsclub.com); you don't need a separate download.

## Sample the screen colour once

Under Keylight (1.2) in Effect Controls, click the eyedropper beside Screen Colour, then sample the screen in the Composition panel. Choose a clean, representative patch near the subject, avoiding a highlight or shadow. Inspect the matte after each sample: a new sample replaces the previous colour rather than adding another green to a range. [Foundry's Keylight guide for After Effects](https://thefoundry.s3.amazonaws.com/products/keylight/ae/documentation/Keylight%5F1.2v12%5FAE.pdf?ref=aftereffectsclub.com) explains that replacement behaviour.

One value is in charge from here on. [Advanced Spill Suppressor's Key Color is linked to Screen Colour by an expression](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/work-with-keying-effects/keying-effects.html?ref=aftereffectsclub.com), so a later resample updates the despill colour as well and there is nothing to keep in sync by hand. Leave that link alone: the keying effects page mentions disabling or removing the expression only for despilling a colour other than the one keyed.

## Judge the key in the alpha channel

The full-colour view hides the faults that matter. Set the [Show Channel button at the bottom of the Composition panel](https://helpx.adobe.com/after-effects/desktop/view-and-preview/preview-video-and-audio/modifying-using-views.html?ref=aftereffectsclub.com) to the alpha channel, or press [Alt + 4 on Windows or Option + 4 on macOS](https://helpx.adobe.com/after-effects/desktop/get-started/keyboard-shortcuts/keyboard-shortcuts-reference.html?ref=aftereffectsclub.com). The alpha channel then shows as grayscale: black is fully transparent, white is fully opaque, and gray is partly see-through. Alt-click (Windows) or Option-click (macOS) the same button to switch between the alpha channel and the full RGB view.

Read it at the hardest frame:

- The body should be solid white. Gray specks inside it are holes the background will show through.
- The area where the screen was should be solid black. Gray haze there is green the key has not removed.
- Hair, motion blur and the soft rim of the silhouette are meant to fade through gray. Clipping them to pure white or pure black is what makes an edge look cut out.

Open the [Screen Matte property group under Keylight](https://www.adobe.com/learn/after-effects/web/create-video-visual-effects?ref=aftereffectsclub.com) in Effect Controls. This group contains Clip Black, Clip White and Screen Softness; it is separate from the Screen Matte choice in the View menu. Raise Clip Black to clear gray haze from the background and lower Clip White to firm up holes inside an opaque part of the subject. Stop as soon as those areas are clean. [Foundry's clip-level guidance](https://thefoundry.s3.amazonaws.com/products/keylight/ae/documentation/Keylight%5F1.2v12%5FAE.pdf?ref=aftereffectsclub.com) warns that heavy clipping hardens the edge, so preserve gray in fine hair and motion blur. Screen Softness adds softness to the matte edge; it won't recover detail that clipping has removed.

![Screen Matte group under Keylight mapped to Clip Black for background haze, Clip White for unwanted holes in solid subject areas, and Screen Softness for the matte edge](https://storage.ghost.io/c/93/1e/931ecadb-86fa-4092-9a2d-733ed6274523/content/images/2026/11/green-screen-after-effects-matte-control-decision-owner130-8dc55f70dbe5.webp)

Open the Screen Matte group under Keylight. Raise Clip Black for background haze or lower Clip White for unwanted holes in an otherwise opaque part of the subject. Keep gray in fine hair and motion blur; clipping those edges removes detail. [Open the Screen Matte controls at full size](https://storage.ghost.io/c/93/1e/931ecadb-86fa-4092-9a2d-733ed6274523/content/images/2026/11/green-screen-after-effects-matte-control-decision-owner130-8dc55f70dbe5.webp?ref=aftereffectsclub.com).

Keylight's View menu also offers Screen Matte, the matte built from the picked colour. If you switch to it to compare, set View back to Intermediate Result before moving on, since the two effects below Keylight depend on that setting.

Then play or scrub the whole clip, still in the alpha view. If the light on the screen changes during the shot, values that work on one frame stop working on another. Adobe's advice for that case is to [keyframe the keying properties](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/keying/keying.html?ref=aftereffectsclub.com), with Linear interpolation when only one property changes and Hold interpolation when several interacting properties change, and then to check the result frame by frame.

## Clean a noisy matte with Key Cleaner

Key Cleaner is the second effect in the stack. Adobe's [green-screen cleanup tutorial](https://www.adobe.com/learn/after-effects/web/fix-green-screen-footage?ref=aftereffectsclub.com) uses it for blocky compression noise that makes the matte edge chatter between frames. If your matte is already clean, you can leave this stage alone. Its controls do different jobs:

- the edge radius control sets the area being refined; lower it if the matte grows in an unwanted way;
- reduce chatter, a smoothing over time that settles the crawling edge;
- alpha contrast, which clears leftover noise and eats fine detail when pushed too far;
- strength, which backs the whole effect off.

Key Cleaner can recover alpha detail affected by compression, but it can also introduce unwanted semi-transparency along edges that should stay sharp. [Restricting it with a feathered effect mask](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/work-with-keying-effects/keying-effects.html?ref=aftereffectsclub.com) is Adobe's remedy for that case. Judge the result over time, not from one clean frame.

## Take the green spill off hair and edges

Spill is green light from the screen bouncing onto the subject. The key leaves it in place, because those pixels belong to the subject and stay opaque, so it shows as a green tint on hair, shoulders and the rim of the silhouette. Over the contrasting background colour it is easy to spot.

1. In Effect Controls, turn on Advanced Spill Suppressor with the effect switch next to its name. [Current versions draw this as an eyeball icon](https://helpx.adobe.com/after-effects/desktop/apply-effects-and-animation-presets/effects-and-animation-presets/effects-animation-presets-overview.html?ref=aftereffectsclub.com); earlier versions use the switch in the same position. [Enable the suppressor after sampling Keylight's colour](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/work-with-keying-effects/keying-effects.html?ref=aftereffectsclub.com), then compare the hair, shoulders and skin against a contrasting background.
2. Keep Method on Standard first. It automatically detects the dominant key colour and needs less input. The [Ultra method](https://www.adobe.com/learn/after-effects/web/fix-green-screen-footage?ref=aftereffectsclub.com) exposes a different set of controls for cases such as refracted colour contamination; switch only when the simpler result leaves a specific problem to solve.

![Two close-ups of the same strands of hair over a warm orange background, green-tinted on the left and neutral on the right, above a three-effect stack with Advanced Spill Suppressor's eyeball highlighted and a Method: Standard note.](https://storage.ghost.io/c/93/1e/931ecadb-86fa-4092-9a2d-733ed6274523/content/images/2026/11/green-screen-after-effects-spill-controls-provenance-0f9aeeb4b378ed06.webp)

Compare the green tint in the hair on the left (1) with the neutral edge in this example (2). With Advanced Spill Suppressor enabled (3) and Method on Standard (4), check your frame for any green that remains. [Open the spill controls at full size](https://storage.ghost.io/c/93/1e/931ecadb-86fa-4092-9a2d-733ed6274523/content/images/2026/11/green-screen-after-effects-spill-controls-provenance-0f9aeeb4b378ed06.webp?ref=aftereffectsclub.com).

### When the hair still carries a green fringe

[Adobe's Matte effects page](https://helpx.adobe.com/after-effects/desktop/apply-effects-and-animation-presets/list-of-effects/matte-effects.html?ref=aftereffectsclub.com) names Refine Soft Matte, from Effect > Matte, as an effect commonly applied after keyers like Keylight. Add it after the three keying effects and use two of its settings: Calculate Edge Details, which keeps motion blur and hair, and Decontaminate Edge Colors, which removes background colour fringing where spill reaches hair or transparent areas.

### When the edge is too wide, too tight or too sharp

[Simple Choker's Choke Matte control](https://helpx.adobe.com/after-effects/desktop/apply-effects-and-animation-presets/list-of-effects/matte-effects.html?ref=aftereffectsclub.com) pulls the edge inward with positive values and spreads it with negative values. Its Matte view shows the change in black and white. Use small adjustments on a hard shoulder or sleeve edge and watch the hair: choking can remove strands along with the fringe. Matte Choker adds a repeated spread-and-choke process for holes; its Gray Level Softness at 100% can blur the alpha channel alone. These are refinements for a diagnosed fault, so don't add them all to a clean key.

## Keep green props with a hold-out matte

A green tie or logo can disappear with the screen because the key reads colour rather than meaning. A [hold-out matte](https://helpx.adobe.com/after-effects/desktop/animate-in-after-effects/keying/keying.html?ref=aftereffectsclub.com) restores just that area from an unkeyed copy placed directly over the keyed layer:

1. Select and duplicate the footage layer. On the **copy only**, remove the keying and Matte effects and the garbage mask from this walkthrough; leave the keyed original intact.
2. On the copy, draw a mask around the green object alone, in Add mode, with a little feather.
3. Keep the copy directly above the keyed original in the Timeline panel.
4. For this fresh, unanimated footage pair, parent the copy to the original so a later Position, Scale or Rotation change on the original moves both together. Don't change only the copy. If the original already has Transform keyframes, preserve them and check alignment throughout the shot before adding a parenting relationship.

If the green object moves through the shot, its mask needs the same tracking or Mask Path keyframes as the garbage matte.

## Place the new background under the keyed layer

Drag the background from the Project panel into the Timeline panel below the keyed clip. Everything the matte made transparent now shows that layer instead of the background colour. If the picture is a different size from the clip, [scale the background to fill the frame](https://aftereffectsclub.com/scale-to-fill-frame-after-effects/) rather than resizing the keyed layer, so the subject keeps the size it was shot at.

Then return the current-time indicator to the hardest frame for a last look in the full-colour view, against the real picture. An edge that seemed clean against a flat colour can show a light or dark rim there, and the fix belongs on the keyed layer, not on the background. The alpha view stops helping at this point: in the Composition panel it reads the whole composite, so wherever an opaque background covers the frame it shows solid white. To read the matte again, turn off the background layer's Video switch (its eyeball in the Timeline panel), press Alt + 4 on Windows or Option + 4 on macOS, adjust the edge settings above, then turn the switch back on, because [a layer with its Video switch off is left out of the final output too](https://helpx.adobe.com/after-effects/desktop/work-with-layers/manage-layers/layers.html?ref=aftereffectsclub.com).

Scrub the whole composite in full colour at a useful magnification. Check the hardest frame again, then check moving hair, the garment edges and any protected green object across the shot. A replacement background that should follow camera movement needs tracking too; a clean key alone won't make a still image share that motion.