Learn how to create composites in Adobe After Effects using Keylight, an effect designed for chroma keying. Understand how Keylight works, explore its settings, and discover how to effectively isolate and clean up green screen footage.
Key Insights
- Keylight is an Adobe After Effects effect made by the British software company, The Foundry, designed for chroma keying. It helps isolate and clean up green screen footage by removing the green color and allowing you to apply various effects and animations to the isolated footage and background objects.
- A project in Adobe After Effects begins by dragging and dropping the footage into the Composition Window. Scale adjustment may be necessary depending on the footage size.
- The Keylight effect is applied by typing 'Keylight' in Effects, then selecting 'Keylight + Key Cleaner + Advanced Spill Suppressor' and dragging and dropping it onto the video layer.
- Settings within Keylight help improve the footage quality. For instance, changing 'Clip Black' to 30 and 'Clip White' to 65 can remove unnecessary dark gray.
- Applying additional effects such as 4-Color Gradient can enhance the overall appearance of the footage. This effect is applied by duplicating the layer, renaming it 'Color Overlay' and then dragging and dropping 4-Color Gradient onto the Color Overlay layer.
- Composting in Adobe After Effects also includes adding in Precomp, working with different layers, and adjusting the timeline to create a clean, well-blended result.
- Chroma keying can be useful for combining moving green screen footage with other background elements. It can also be used with high contrast footage like video stuff available from free asset sites like Pexels.com.
Compositing Building Blocks
-
Blend Modes
Multiply, Screen, Overlay, and Add change how layers combine — start here.
-
Track Mattes
Use one layer's alpha or luma to control another's visibility.
-
Masks
Hand-drawn shapes that hide or reveal regions of a layer.
-
Adjustment Layers
Effects on top affect everything below — non-destructively.
Getting the Project Files
Download the Project Files
After the download has finished, be sure to unzip the file if it hasn’t been done for you.
Link to project files.
Project Overview
Using and Adjusting Footage
- Drag and drop the video file from the Project Window into the Timeline.
- With the video layer selected, hit S on the keyboard to open up Scale.
- Enter 35% for Scale.
- Click on the Pen tool in the top toolbar.
- Use the Pen tool to draw around the main figure, creating a garbage mask This removes the unnecessary edges of the footage.
Keylight Settings
- In Effects and Presets, type in Keylight. Select Keylight + Key Cleaner + Advanced Spill Suppressor.
- Drag and drop this effect onto the video layer.
- In Effect Controls, click the eyedropper next to Screen Colour. Select a bright green from the footage.
- Change View to Screen Matte.
- Toggle open Screen Matte. Change Clip Black to 30 and Clip White to 65.
- If not active already, turn on Key Cleaner and Advanced Spill Suppressor.
4 Color Gradient
- With the video layer selected, hit CTRL D (PC) / Cmnd-D (Mac) to duplicate the layer.
- Hit ENTER (PC) / Return (Mac) to rename it “Color Overlay”.
- In Effects and Presets, type in 4-Color Gradient. Drag and drop it onto the Color Overlay layer.
- In the Effects Controls panel, click the eyedropper next to Color 1 and choose a hue from the Composition Window, preferably a cool color.
- Repeat this for the next three colors.
- If not visible, activate the Layer Modes panel by hitting Toggle Switches/Modes in the lower left of the layer stack.
- Change the Layer Mode of Color Overlay to Hard Light.
Add in Precomp
- If not applied already, drag and drop the Text and Frame Precomp from the Project Window panel. Organize it in the layer stack so it’s below the footage layers.
- Select both video layers and drag them to the right, so they don’t interfere with the text.
Additional Resources for Chroma Keying
The Foundry—Keylight Help Page
Adobe Help—Keying in AE
Tutorial Keylight—Jason Levine
Silo Tips—Using Keylight
Video Transcript
Hello, this is Tziporah Zions from Noble Desktop, and in this tutorial, I'm going to show you how to do compositing in Adobe After Effects. We're going to be working with a piece of green screen footage here, click to see it over here. Let's load it up to this, and we're going to be using the key light effect. Key light is actually not made by Adobe. It's made by a British software company named the Foundry. I think now nowadays you could find it by Framestore, if I'm not mistaken, Adobe licenses it from them so that they can bundle up with After Effects at no additional cost. So that's great. That comes free with the software, essentially. So basically, we're going to be isolating and cleaning up this footage over here and they are going to be adding some effects to it, so it blends
Visually with the rest of the layers we have going on here. What we're doing, in this tutorial is called Chroma Keying, you could see like, you see this green background up here, up here, sorry. And it's usually done with either a green or blue screen behind your subject. Well, any solid color would work for your screen. Most commonly, you're going to see green or blue because those are the colors that are furthest from human skin tones. So let's preview the animation. So you can see how I scrub through the timeline and see how the woman stands out here from a background image, and she's got a couple of color effects applied to her. So you can contrast this with the original footage over here, which is just her. On like, just on a green screen. We're actually going to be removing that green color with the Keylight effect.
So chroma keying is like useful for combining moving green screen footage with like other background elements and with the keylight effect, we can quickly isolate pieces of footage. So that allows us to apply all kinds of effects and animations for isolated footage and background objects. So the main task is we're going to be using is just a single piece of footage here, and it's like precomp text included as well within the file. You can find these projects with those assets included in the video description below. So the first thing that we're going to be doing is dragging and dropping the footage of the woman right into our composition window. I'm going to hit S for scale on my keyboard. I'm going to shrink this down, shrink this down.
Touches right around 35% on working with different kinds of footage, it's pretty common to have them like all sorts of sizes, so you know you're going to want to just adjust them to fit whatever you're working on. You know, I'm going to actually put this up 32%. I like that a little better. I'm actually going to shift her down a little bit. So the bottom of the figures, like flush with the bottom of the composition window. All right, perfect. So the green screen, you know, the elephant in the room, we want to get rid of that thing.
We're going to head into effects over here. We're going to type in Keylight and there's one, in particular, we're looking for. So you see, this one's got a long name. It's called Keylight plus key cleaner plus Spill suppressor. And it's got a long name. But don't be intimidated. Drag and drop it over here. You're not going to see a difference at first. And basically, what this is, it's the basic Keylight effect, with some added effects attached to it that make it easier to clean up a green screen video. So like I said, nothing changes visibly. But after we tweak some settings, it's going to look totally different. We're going to be changing., so I'm going to be actually going through a couple of these terms so you understand what they mean.
You can use them in your own project. But basically, the first thing we're going to be doing is head over to screen color and we're going to grab that eyedrop tool. And what this is basically the screen color you're telling the program, what color do you want to make transparent? And we're going to be picking the green color over here. And you could choose a wider variety of colors. If you have a Mac, you hold down command as you move around your eyedropper. I'm a PC, so I'm holding ALT for a wider variety of colors.
I'm going to get the brightest green I can over here. You see that disappears from around her. It can see a bit of a green haze around here, but for the most part that green screen is gone. You could see it in the corners. But we're going to be doing some stuff to get rid of that. So the second thing I'm going to be doing is actually going to be making what's called the garbage mask. I'm going to grab the pen tool over here and I'm going to just draw kind of like a white pointy shape around her. The reason being I'm doing this to cut out extra bits of the footage that I don't need, so if I don't need it, why would I want to bother keying it? You know? So that's that. So I'm going to click my selection tool, so I don't actually draw anything else from the pencil. All right. And then over here, where it says View? So intermediate result is showing us with the green haze around her, but also like the with the, you know, the screen color removed. I want to move this over to screen matte. What this does, you see is black and white, look at our footage. What this does is that it reduces our, you know, our footage into grayscale and wherever the black is, that's what's being removed, wherever the white is, that's the footage that we're keeping. But you can see within our footage, that there's like some shades of gray, and I actually don't want that. We want to get our footage as high contrast as possible to really successfully make it very clean.
Since Kaylighting depends a lot upon the contrast from the figure from the background, we're going to want to be able to differentiate, like, tell the difference where the edges of our figure are so clean them up better, make them sharper. Stand out more. All right. So let's head over to key cleaner. It's actually turned on already, so basically reduced chatter refers to as the footage moves along, there might be a couple of speckles in and out, in and out of green, black, you know, colors that we don't want. And if I put that on, that would get rid of that. The footage that we have actually should be all right. We don't need that. And then we can also turn on an advanced spill suppressor. So that is also going to prevent, like any reflective green that has gone into our footage, like if she's holding something shiny. You know, any background color that got into our main footage, I should get rid of that so that now that that's the additional effects are looked at, we're going to head into the detailed effects. So, you know, there's quite a few over here.
You know, there are things like screen pre blur, which refers to like, do you want to blur your, you know, your figure itself, Screen mask, inside mask, outside mask, that refers to the masks within and outside the figure, you know, and there's a couple of other additional effects. I'll show you the ones that we're going to be working with. We're going to toggle that screen matte because that refers to the combined matte that we're working with. And so clip black, sorry, Clip Black and white. So clip Black and white refer to the individual. It's a bit like almost like the level setting in Photoshop if you work with that. And basically, what that means is that I can intensify the whites. I can intensify the blacks like, pull back the blacks. I could pull back the whites within my footage. We're going to work with that. I actually want my clip black. We're going to put it around 30 points to see how that looks. OK, OK, not bad. It got rid of a lot of that.
That dark gray. All right, let's pull back the white. Perhaps how's that going to look? OK? I'm going to put it up to 65 and see how that works. You know, I'm going to experiment with my settings over here, and then I'm going to check what it looks like, you know what it looks like and is there anything else? And I want to do your screens softness, screen shrink and grow. Oh, and roll back first. If you like, mess too much with black and white, clip roll back kind of like softens both of them together, so it's not too aggressive. Screen softness just again, like softening the edges of your screen. This black and white, there are a bit like black and white. So what these guys do, like the despot black one, it moves like it's black if you have a white matte but it simplifies the mask so makes it kind of look blobby.
Here you could see yeah, I see. It's like making the matte more defined. For some things that work for our product. We're not actually going to be doing that. Despot white, it does the same thing. But for bits of white again, it simplifies the matte and makes it look a bit blobby. Not long for this, but you know it works for some projects. By the way, the despill bias and the alpha bias, I apologize, I skipped over them before, but what these guys do is that like if bits of your image become transparent because it accidentally, maybe it's, you know, the background color spill over into it.
It will, you know, depending on what color you pick, that should fix it up. You know, if you choose the color to kind of like, pull out of that. But again, our footage should be OK without it. So those are a couple of the terms, like I said, there are quite a few here, but I think getting a handle on like a couple of the basic ones is a good place to start. If you are new to keylight, the keylight effect. Now we're going to head up to view. And now that we seem to have gotten a clean map, let's put it down to the final results on view.
And there you go. So this is what our keylight looks. It looks pretty good, looks pretty good. I notice that my mask is cutting off a bit of her, so I'm actually going to stretch it down a bit. Thank you. All right, and let's play our clip to see if our keylight has worked well all the way through. All right. As you can see as a scroll through, my timeline looks pretty good. It's a pretty good key and it didn't take much work to get it done. So what we're going to do next is actually applying just one more additional effect. So let's get started. All right, we're going to duplicate our footage layer on my PC, I hit CTRL D. On a Mac. You'd be hitting Cmnd D.
I'm going to hit ENTER on my PC, return on the Mac, to rename it. I'm going to name this color overlay. That should indicate, you know, what we're going to be doing next, and if you remember that blue green kind of hue we had in the beginning, that's what we're going to be applying here. I'm actually going to click the little box next to the name. I'm going to change to purple because I like having my layers all quickly visible by different colors in the layer stack. That's just a personal preference. And now we're going to head over to see effects and presets, and I'm going to put in four color gradient, it popped up just like that. Drag and drop on color overlay and whoa. You can already see where we're headed with this. So it comes with these preset colors, but I actually want colors pulled from the background, mostly so it blends in a little more.
And oh, I'm going to be doing is just grabbing these eye droppers and pulling from the backgrounds. Grabbing maybe another blue, nothing too crazy. Kind of avoiding the treens because those are quite saturated, then it would be too much so mostly heading with the Blues right now. I know they're pretty subtle, but. You know. And I didn't want to make it too overpowering, and I'm actually going to change the coordinates of some of these color gradient points because there's four of them. And these little four dots control where those gradients kind of end and begin. So I'm bringing them a little closer together. So this, you know, they're more apparent and there's a higher contrast than them. And now we're going to change the color mode. If you don't have this interface visible with Layer Modes and stuff, you probably have this one.
So you just toggle switches and modes to go between the two and on color overlay. I'm going to choose hard light. So that will blend my current layer with the one below it in a way that the lower layer is still visible, but now has blue hue to it. And yeah, that's it for these effects. Last thing I'm going to be doing is I'm going to head over to project. I'm going to grab the precomp text and frame. Drop it below, you know, the other footage? And I'm also going to shift a little bit into the timeline wherever the words appear. Grab these two layers, shift them over a little bit to the side, so they're not on top of the words. That's it. All done. So with this technique, we can separate all sorts of footage out from green screens. And in fact, it doesn't actually have to be live footage like you can use any kind of high contrast footage like video stuff. So you can check out free assets and sites like Pexels.com. It's P-E-X-E-L-S.com and they provide everything from 3-D footage to live footage. You could stack effects onto isolated keylight layers, add effects below. Go for like a punchy graphic look with separate color effects.
Or you could like a head for something more natural looking with like a lot of stuff, multiply layers below, add light effects, and you can even keylight multiple objects out at once to duplicate footage layers. So that's all for this tutorial. I hope you've enjoyed learning how to composite in Adobe After Effects, and this has been Tziporah Zions for Noble Desktop.
Video Transcription:
Full Video Transcript
Introduction to Compositing in After Effects
Hello, this is Super Zions from Noble Desktop. In this tutorial, I'm going to show you how to do compositing in Adobe After Effects. We're going to be working with a piece of green screen footage here today. Let's zoom in a bit so you can see this. We're going to be using the Keylight effect. Keylight is actually not made by Adobe—it's made by a British software company named The Foundry. I think nowadays you could find it by the name Framestore, if I'm not mistaken.
Adobe licenses it from them so that they can bundle it with After Effects at no additional cost to you. So that's great—it comes free with the software essentially. Basically, we're going to be isolating and cleaning up this footage over here, and then we're going to be adding some effects to it so it blends visually with the rest of the layers we have going on here.
Understanding Chroma Keying
What we're doing in this tutorial is called chroma keying. You can see this green background up here, and it's usually done with either a green or blue screen behind your subject. While any solid color would work for your screen, most commonly you're going to see blue and green used because those are the colors that are furthest from human skin tones.
Let's preview the animation so you can see how I scrub through the timeline. You see how the woman stands out here from the background image, and she's got a couple of color effects applied to her. You can contrast this with the original footage over here, which is just her on a green screen. I'm actually going to be removing that green color with the Keylight effect.
Chroma keying is useful for combining moving green screen footage with other background elements. With the Keylight effect, we can quickly isolate pieces of footage, which allows us to apply all kinds of effects and animations for isolated footage and background objects. The main assets we're going to be using is just a single piece of footage here, and there's pre-comp text included as well within the file. You can find these projects with all those assets included in the video description below.
Setting Up the Footage
The first thing that we're going to be doing is dragging and dropping the footage of the woman right into our composition window. I'm going to hit S for scale on my keyboard and shrink this down until she's around 35 percent. When working with different kinds of footage, it's pretty common to have them in all sorts of sizes, so you're going to want to adjust them to fit whatever you're working on. I'm actually going to put this at 32—I like that a little better.
I'm actually going to shift her down a little bit so the bottom of the figure is flush with the bottom of the composition window. All right, perfect. So the green screen that's open in the room—we want to get rid of that thing.
Applying the Keylight Effect
We're gonna head into Effects over here and type in "Keylight." There's one in particular we're looking for. You see this one's got a long name—it's called Keylight plus Key Cleaner plus Spill Suppressor. It's got a long name, but don't be intimidated. Drag and drop it over here. You're not going to see a difference at first.
Basically what this is: it's the basic Keylight effect with some added effects attached to it that makes it easier to clean up our green screen video. Like I said, nothing changes visibly, but after we tweak some settings, it's gonna look totally different.
Selecting the Screen Color
The first thing we're going to be doing is head over to Screen Color and grab that eyedropper tool. The screen color is basically telling the program what color you want to make transparent. We're going to be picking the green color over here. You could choose a wider variety of colors—if you have a Mac, you hold down Command as you move around your eyedropper. I have a PC, so I'm going to hold down Alt for a wider variety of colors.
I'm going to get the brightest green I can. There we go—nice! You see that it disappears from around her. You can see a bit of a green haze around here, but for the most part, that green screen is gone. You can see it a bit in the corners, but we're gonna be doing some stuff to get rid of that.
Creating a Garbage Matte
The second thing I'm gonna be doing is making what's called a garbage matte. I'm gonna grab the pen tool over here and just draw kind of like a wide pointy shape around her. The reason I'm doing this is to cut out extra bits of the footage that I don't need. If I don't need it, why would I want to bother keying it? So that's that. I'm going to head over to my selection tool so I don't accidentally draw anything else with the pen tool.
Working with the Screen Matte View
Over here where it says View, the intermediate result is showing us the green haze around her but also with the screen color removed. I want to move this over to Screen Matte. What this does—you see this black and white look at our footage—it reduces our footage into grayscale. Wherever the black is, that's what's being removed. Wherever the white is, that's the footage that we're keeping.
But you can see within our footage there's some shades of gray, and we actually don't want that. We want to get our footage as high contrast as possible to really successfully make a very clean key. Since keylighting depends a lot upon the contrast from the figure to the background, we're going to want to be able to differentiate—tell the difference where the edges of our figure are—so we can clean them up better, make them sharper, and stand out more.
Key Cleaner and Spill Suppressor Settings
Let's head over to Key Cleaner. This is actually turned on already. Basically, "reduced chatter" refers to as the footage moves along, there might be a couple of speckles in and out of green, black, or colors that we don't want. If I flip that on, that would get rid of that. The footage that we have should be all right, so we don't need that.
We can also turn on Advanced Spill Suppressor. That is also going to prevent any reflective green that has gotten into our footage—like if she's holding something shiny, any background color that got into our main footage, that should get rid of that.
Understanding the Detail Effects
Now that the additional effects are looked at, we're gonna head into the detail effects. There's quite a few over here. There's things like Screen Pre-blur, which refers to if you want to blur your figure itself. Screen Matte Inside Mask and Outside Mask refers to the masks within and outside the figure. There's a couple of other additional effects—I'll show you the ones that we're going to be working with.
We're going to talk a little bit about Screen Matte because that refers to the combined matte that we're working with. Clip Black and Clip White refer to the individual levels—it's a bit like the levels setting in Photoshop if you've worked with that. Basically what that means is that I can intensify the whites, I can intensify the blacks, I could pull back the blacks, I could pull back the whites within my footage.
Adjusting Clip Black and Clip White
We're going to work with that. I actually want my Clip Black around 30 points to see how that looks. Okay, not bad—it got rid of a lot of that dark gray. Let's pull back the white perhaps. How's that gonna look? Okay, I'm gonna put it up to 65 and see how that looks. I'm gonna experiment with my settings over here and then check what it looks like at the end.
Is there anything else that I want to do here? Screen Softness, Screen Shrink and Grow—oh, and Clip Rollback refers to if you mess too much with Clip Black and Clip White, Clip Rollback kind of softens both of them together so it's not too aggressive. Screen Softness just again softens the edges of your screen.
Despot Black and Despot White
Despot Black and Despot White are a bit like Clip Black and Clip White. What these do—the Despot Black one removes bits of black if you have a white matte, but it simplifies a matte so it makes it kind of look blobby. You can see it's making our matte more undefined. For some things that works, but for our project, we're not actually going to be doing that.
Despot White does the same thing but for bits of white. Again, it simplifies the matte, makes it look a bit blobby—not what we want for this, but it works for some projects. By the way, the D-Spill Bias and the Alpha Bias—I apologize, I skipped over them before—but what these do is if bits of your image become transparent because it accidentally had some background color spill over into it, depending on what color you pick, that should fix it up. But again, our footage should be okay without it.
Reviewing the Final Key
So those are a couple of the terms. Like I said, there's quite a few here, but I think getting a handle on a couple of the basic ones is a good place to start if you are new to the Keylight effect. Now we're gonna head up to View, and now that we seem to have gotten a clean matte, let's put it down to Final Result on View. There we go—so this is what our Keylight looks like. It looks pretty good.
I noticed that my mask here is cutting off a bit of her, so I'm actually going to stretch it down a bit. All right, and let's play our clip to see if our Keylight has worked all the way through. So you can see as I scroll through my timeline, it looks pretty good. That's a pretty good key, and it didn't take much work to get it done.
Applying a Color Overlay Effect
What we're going to be doing next is actually applying just one more additional effect. Let's get started. We're going to duplicate our footage layer—on my PC I hit Ctrl+D, on a Mac you'd be hitting Command+D. I'm gonna hit Enter on my PC (Return on the Mac) to rename it. I'm gonna name this "color overlay"—that should indicate what we're gonna be doing next.
If you remember that blue-green kind of view we had in the beginning, that's what we're going to be applying here. I'm actually going to click the little box next to the name and change it to purple because I like having my layers all quickly visible by different colors in the layer stack. That's just a personal preference.
Adding the Four-Color Gradient
Now we're gonna head over to Effects and Presets. I'm gonna put in "four color gradient"—oh, it popped up just like that. Drag and drop onto color overlay, and whoa, you can already see where we're headed with this. It comes with these preset colors, but I actually want colors pulled from the background mostly so it blends in a little more.
All I'm gonna be doing is just grabbing these eyedroppers and pulling from the background certain hues. Grabbing maybe another blue—nothing too crazy. I'm kind of avoiding the greens because those are quite saturated; I think it would be too much. So mostly heading with the blues right now. I know they're pretty subtle, but I didn't want to make it too overpowering.
Adjusting Gradient Points and Blend Mode
I'm actually going to change the coordinates of some of these color gradient points because there's four of them, and these little four dots control where those gradients kind of end and begin. So I'm bringing them a little closer together so they're more apparent and there's a higher contrast within them.
Now we're gonna change the color mode. If you don't have this interface visible—like the layer modes and stuff—you probably have this one, so you just hit Toggle Switches and Modes to go between the two. On color overlay, I'm going to choose Hard Light so that will blend my current layer with the one below it in a way that the lower layer is still visible but now has this blue hue to it. Yeah, that's it for these effects.
Adding the Pre-Comp Text
The last thing that I'm going to be doing is head over to Project, grab the pre-comp text, and drop it below the other footage. I'm also going to shift a little bit into the timeline wherever the words appear. Grab these two layers and shift them over a little bit to the side so they're not on top of the words. That's it—all done!
Creative Possibilities with Chroma Keying
With this technique, we can separate all sorts of footage out from green screens. In fact, it doesn't actually have to be live footage—you can use any kind of high contrast footage like video stuff. You can check out free assets on sites like Pexels.com (that's P-E-X-E-L-S dot com), and they provide everything from 3D footage to live footage.
You could stack effects on isolated Keylight layers, add effects below, go for a punchy graphic look with separate color effects, or you could head for something more natural looking with a lot of soft multiply layers, glow, and light effects. You can even key multiple objects out at once too with duplicate footage layers. So yeah, that's all for this tutorial. I hope you've enjoyed learning how to composite in Adobe After Effects. This has been Super Zions for Noble Desktop.
