Skip to main content

Inside Film Institute

Green screen setup for our After Effects keying tutorial
Blog · Learn Filmmaking

How to Remove Green Screen in After Effects (Keylight Tutorial)

Akhil Kumar YadavBy Akhil Kumar Yadav (InsideAKY)
Founder, Inside Film Institute
5 min read
INSIDE BLOG · Blog 39 · All blogs by number →

Almost every big VFX shot you have seen starts the same way: an actor standing in front of a bright green wall. The dragon, the city, the explosion all come later. First, that green has to disappear cleanly, right down to the last strand of hair.

This is called keying (or chroma keying), and it is the first real skill every VFX artist learns. It’s easy to get a rough key. Getting a key nobody can spot is the craft. Here is how to remove green screen in After Effects the way we teach it, using two of our own lessons.

Advanced green screen removal in After Effects. Tutor & host: InsideAKY. An Inside Motion Pictures production.

Jump to a chapter:

A good key starts on set

No software can fully save a badly shot green screen. Before you even open After Effects:

  • Light the screen evenly. Dark patches and bright hot spots are both different shades of green, and the key has to fight each one.
  • Keep the actor away from the screen. A few feet of distance stops green light bouncing onto skin and clothes (this is called spill).
  • Light the actor for the final scene, not for the studio. If the background will be a sunset, the light on the face should come from that side.
  • No green clothes, and avoid very shiny jewellery that reflects the screen.

How to set up and light a green screen

Most bad keys are ruined on set, not in the edit. Wrinkles, uneven light, green spill and the wrong camera settings make keying slow and messy. Our full setup tutorial, chapter by chapter:

Advanced green screen setup and lighting: a VFX tutorial by Inside Motion Pictures (Hindi).
  1. The screen. Matte, stretchy cloth pulled tight, with no folds or shadows. Fix the corners with paper tape (0:39).
  2. Light the screen evenly. One big soft light on each side, aimed so the overlap fills the middle. One even brightness across the whole screen (2:53).
  3. Light the actor for the final scene. Match the light to the world they will be placed in: warm for sunset, hard for action (4:18). Keep them a few steps from the screen to avoid spill.
  4. No green on the actor. Green clothes or props disappear with the key. Check costumes before you roll.
  5. Tracking markers. If the camera moves, add marks in matte tape of a different green, so they track but still key out (5:29).
  6. Camera settings. White balance with a grey card (8:30), avoid a very shallow depth of field, and keep the shutter sensible so motion blur doesn’t smear the edges. See the exposure triangle.

Step 1: Apply Keylight and pick the screen colour

Put the green-screen clip in a composition and apply Keylight (1.2) from the Effects panel. Take the Screen Colour eyedropper and click on the green, close to the actor (not in a far corner). Most of the green vanishes at once. This is where beginners stop, and it is why their shots look fake. Watch this part at 0:36.

Step 2: Switch to the Screen Matte view

In Keylight, change the View to Screen Matte. Now the picture turns black and white: white is what you keep (the actor), black is what goes (the screen). Any grey means “half see-through”.

Look closely. You will usually find grey noise in the black area, and grey holes inside the actor. Both will show up later as a dirty or ghostly image. Watch this part at 1:11.

Step 3: Refine the matte

Open the Screen Matte settings. Raise Clip Black slowly until the background is fully black. Lower Clip White slowly until the actor is fully white. Go in small steps and keep checking the edges. If you push too far, hair and soft edges get chopped off and the actor looks cut out with scissors.

Zoom in on the hardest area, usually the hair, and check it at 100%. In the tutorial you can see this done on a close-up of the face. Watch this part at 1:26.

Step 4: Garbage mask and a luma matte

Two tricks make difficult shots easier:

  • Garbage mask: draw a rough mask around the actor to throw away everything far from them: light stands, the edges of the screen, the studio floor. Then Keylight only has to work on a small area.
  • Luma matte: duplicate the layer, turn the duplicate into a clean black-and-white matte, and use it as a Luma Matte track matte for the original. This gives you more control over the edges than one Keylight alone.

Both appear in our free lesson on the “giant” effect, which builds a full composite from a green-screen shot (steps 6 and 7 on screen there). Watch from about 4:00.

Free lesson: keying, hair refinement and light wrap on a full composite. Inside Motion Pictures.

Step 5: Remove the spill

Even after a clean key, a green tint often stays on the edges of the hair, the shoulders and the skin. That is spill. Apply Advanced Spill Suppressor (or adjust Keylight’s despill settings) to neutralise it. Check the skin afterwards: it should look like normal skin, not grey.

Step 6: Make it belong in the new background

A perfect key can still look fake if the actor doesn’t match the world behind them. This is the step that separates a “removed background” from a real VFX shot:

  • Match the colours: use Lumetri Color or Curves to match the actor’s blacks, brightness and colour tint to the background plate.
  • Add a shadow: real people touch the floor and block light. In the giant lesson, the shadow from the green-screen shoot is extracted and placed in the scene.
  • Light wrap: let a little of the background’s light bleed around the actor’s edges, the way real light does.
  • Match the camera: same grain, same softness, same motion blur.

And the universal step, shown on screen in the lesson: Ctrl + S. Save often. Watch the spill, shadow and colour-match part from about 6:30.

Quick checklist

  • Screen lit evenly, actor away from the screen
  • Keylight applied, screen colour picked near the actor
  • Screen Matte checked: pure black, pure white, soft hair edges kept
  • Garbage mask around the actor
  • Spill removed, skin looks natural
  • Colours, shadow, light wrap and grain matched to the background

Once you can key cleanly, a whole world of effects opens up. See how we used it in real music videos in the making of Old Skool, and how our students work on a real green screen in Rising Stars of VFX, batches 8 and 9. Thinking about VFX as a career? Read VFX careers in India.

Quick quiz

In the Keylight Screen Matte view, what does white mean?

A green tint on hair and shoulders after keying is called what?

Watch: the green screen process in one reel

No budget for locations? Remove the green screen, add a background, done. Here is the whole process from our CGI and VFX team in one short reel:

Watch: The green screen process (Instagram)

After the key, the next skills are roto and camera tracking.

Questions people ask about green screen

Green screen kaise hataye? (How do I remove a green screen?)

After Effects mein clip par Keylight lagao, eyedropper se green pick karo, phir Screen Matte view mein black aur white saaf karo. In English: apply Keylight, pick the green, then clean the matte until the background is pure black and the person is pure white. Phone apps do a quick version of the same idea, but After Effects gives you control over hair and edges.

Where is Keylight in After Effects?

Open the Effects & Presets panel and search “Keylight”. It comes free with After Effects, under the Keying category, as Keylight (1.2).

Why does the background turn black instead of transparent?

Usually it is just the composition background colour, and the area is already transparent. Click the transparency grid button below the viewer to check. If you want a new background, put an image or video layer under the keyed layer.

Why is there a green outline around my subject?

That is spill: green light bouncing off the screen onto the edges. Use Advanced Spill Suppressor, and next time keep the actor further from the screen.

Can I remove a green screen in Premiere Pro or DaVinci Resolve?

Yes. Premiere Pro has Ultra Key and DaVinci Resolve has the 3D Keyer and Delta Keyer. The idea is the same: pick the colour, check the matte, clean the edges, remove the spill.

How do you light a green screen evenly?

Use two big soft lights, one on each side, aimed so their light overlaps in the middle. Check for hot spots and dark corners before you shoot.

How far should the actor stand from a green screen?

A few steps away, so green light does not spill onto their edges and their shadow does not fall on the screen.

Learn VFX on real shots

Keying a test clip is one thing. Keying a shot for a real music video, with a real deadline and a director waiting, is how it becomes second nature. At Inside Film Institute, students of our VFX course in Chandigarh shoot on our own green screen and work on real projects from day one. If you love cinema and want to learn it by doing, start here:

We Love Cinema.

Rate this blog

Know someone who loves cinema? Send them this.

Ask the mentor

Stuck on something? Ask a working filmmaker.

Our mentors shoot on real Inside Motion Pictures sets. Send your question and we'll reply on WhatsApp.

Comments

No comments yet. Be the first to share a thought.

Leave a comment

Your email is not shown. Your first comment appears after a quick check by our team.

Akhil Kumar Yadav (InsideAKY), co-founder of Inside Film Institute
About the author

Akhil Kumar Yadav InsideAKY

Filmmaker and VFX director with 12+ years on set, and co-founder of Inside Film Institute. He has done VFX and post-production for Sidhu Moosewala, Karan Aujla and Tony Kakkar.

Get new answers first

New blog out? Get it in your inbox.

Leave your email and we’ll send you every new blog when it’s out.

Also read

Ready to be a filmmaker?

Apply now WhatsApp Call