Every compositor has been there: the green screen shot with an actor whose flyaway hair dissolves into digital mush the moment you pull a key. Fine hair occupies a unique space in compositing because it exists at the resolution limit of your footage. At 4K resolution (3840x2160), a strand of fine hair shot on an 85mm lens at a typical interview distance measures 1-3 pixels wide. Those pixels contain a mix of foreground (hair) color, green screen spill, and background color. No keyer in the world can perfectly separate that signal. The question is which keyer destroys it least, and how you compensate for what it cannot do.
Why Fine Hair Is the Hardest Keying Challenge
The Pixel Math of Hair
A strand of human hair measures approximately 50-100 micrometers (0.05-0.1mm) in diameter. On a Super 35 sensor (roughly 24x13.5mm for 4K) with an 85mm lens at 2 meters subject distance, the magnification ratio gives you approximately 0.02mm per pixel. A 70-micrometer hair strand therefore occupies roughly 3.5 pixels at 4K. At 1080p, the same hair occupies roughly 1.8 pixels. Below 2 pixels, the hair is sub-Nyquist — it is not fully resolved by the sensor and appears as a semi-transparent smear.
This has direct implications for keying. At 4K, you have barely enough data to identify the hair as a distinct object. At 1080p, the hair is mathematically unresolvable as a solid edge. Any keyer that tries to make a binary decision (foreground or background) at the hair boundary will either eat the hair (classify it as background) or leave green fringing (classify spill-contaminated pixels as foreground).
Chroma subsampling compounds the problem. 4:2:0 footage (H.264, H.265) has half the chroma resolution of luma. Hair that is 3 pixels wide in luma is only 1.5 pixels wide in chroma. Keyers operate primarily on chroma (the green channel difference), so on 4:2:0 footage you are keying with 1.5 pixels of chroma data for hair edges. This is why ProRes 4444 and R3D/BRAW footage key dramatically better — the chroma data is full resolution.
Hair width reference by focal length and resolution (subject at 2 meters, Super 35 sensor):
- 35mm lens, 4K: ~8 pixels wide
- 50mm lens, 4K: ~5 pixels wide
- 85mm lens, 4K: ~3 pixels wide
- 135mm lens, 4K: ~2 pixels wide
- 85mm lens, 1080p: ~1.5 pixels wide
- 135mm lens, 1080p: ~1 pixel wide (sub-Nyquist)
Keyer Comparison: Keylight vs Primatte vs Supercomp
Keylight (Built Into After Effects)
Keylight has been the After Effects standard keyer since version 7.0. It uses a statistical model that samples the screen color and builds a probability map for foreground/background classification. For fine hair, the critical settings are:
Screen Colour: Click the eyedropper on the most representative green area — not the brightest, not the darkest, but the middle of the screen's luminance range. This sets the statistical baseline for the entire key. A bad Screen Colour pick produces edge artifacts that no amount of Clip adjustment can fix.
Screen Gain: Default is 1.0. For fine hair, raise to 1.05-1.15. This expands the range of pixels classified as background, pulling more semi-transparent hair pixels into the matte. Do not exceed 1.20 — above this, solid foreground edges start eating away and you lose shoulder and ear definition.
Screen Balance: Controls the balance between the primary and secondary screen colors (green vs the combination of red and blue). Default is 0. Adjust between -0.10 and +0.10 for fine hair. This parameter has a subtle but important effect: it shifts which pixels at the hair boundary are classified as spill versus foreground. Positive values pull more warm pixels toward foreground (preserving auburn and brown hair), negative values pull more cool pixels toward foreground (better for blonde hair).
Clip Black: Default is 0. For fine hair, set to 5-15. This hard-cuts any pixel with a matte value below the threshold to pure transparent. The trade-off: higher Clip Black eats semi-transparent hair. Lower values preserve hair but leave green contamination. The sweet spot for 4K green screen footage is 8-12. For 1080p, use 5-8 because you have less data to work with and aggressive clipping destroys too much.
Clip White: Default is 100. Lower to 90-95 for fine hair. This forces pixels with high but not 100% matte values to full opacity, hardening the foreground edge. The benefit: semi-transparent hair that should be solid (close to the head where hair bunches) becomes solid. The risk: if set too low, you get a hard matte edge that looks like a cutout.
Screen Pre-blur: Set to 1-2 pixels. This blurs the screen colour sample, reducing noise-induced jitter in the matte edge. Critical for fine hair: without pre-blur, noise in the green channel causes the matte edge to flicker frame to frame, producing visible chatter on hair strands.
Screen Shrink/Grow: Set to -0.5 to -1.0 (shrink). This pulls the matte edge inward by half a pixel to one pixel, effectively eating the outermost row of hair pixels. Counterintuitive, but useful: those outermost pixels are the most spill-contaminated, and removing them prevents green fringing. You then use light wrap and a duplicate blurred edge layer to reconstruct the hair silhouette.
Primatte Keyer 6 (Red Giant / Maxon)
Primatte uses a polynomial algorithm that maps 3D RGB space into foreground, background, and semi-transparent regions. It is generally better than Keylight for fine hair because its semi-transparency model is more sophisticated — instead of a binary probability threshold, it creates a graduated alpha that preserves sub-pixel transparency.
Key settings for fine hair:
Select Background: Click 3-5 times on different areas of the green screen (bright, medium, dark, shadowed). Each click adds to Primatte's background model. More samples produce a more accurate statistical model.
Select Foreground: Click on solid hair areas, not on the fine edges. Primatte uses these clicks to define the foreground boundary. If you click on semi-transparent hair, Primatte assumes those colors are foreground and will not key them out properly.
Spill Sponge (-): After the initial key, use the Spill Sponge tool to click on hair areas that show green contamination. Primatte's spill suppression is mathematically better than Keylight's — it desaturates the green channel specifically without shifting the overall hue of the hair. For fine blonde and light brown hair, 3-5 Spill Sponge clicks typically clean up the edges.
Detail control: Primatte's Detail slider (under Fine Tuning) controls how aggressively it preserves sub-pixel transparency. For fine hair, set Detail to 80-100%. At 100%, Primatte preserves maximum semi-transparency but may leave faint green contamination. At 80%, you lose some hair detail but get a cleaner composite. Most professional work lands at 85-92%.
Matte Density: 95-100% for fine hair. This controls the opacity of semi-transparent pixels. At 100%, all semi-transparent pixels remain at their natural alpha values. Below 95%, thin hair strands become too transparent and vanish against bright backgrounds.
Honest assessment: Primatte produces better hair keys than Keylight on well-lit green screen footage. It costs money ($200 as part of the Maxon One subscription or standalone). It is slower — Primatte renders at roughly 60-70% of Keylight's speed on the same hardware. For quick turnaround work where hair detail is not critical, Keylight is faster and good enough. For hero shots with prominent flyaway hair, Primatte is worth the render time.
Supercomp (Aescripts / Rowbyte)
Supercomp is not a keyer — it is a compositing environment that changes how keyed elements blend with backgrounds. It approaches the hair problem differently: instead of trying to generate a perfect alpha matte, it uses light wrap, edge-aware blending, and spill mapping to make imperfect keys look convincing.
For fine hair, Supercomp's advantage is its Light Wrap engine. Light wrap simulates the way background light bleeds around foreground edges in a real camera, which is exactly what happens with fine hair — it is semi-transparent because light passes through it and around it. Supercomp generates a light wrap pass from the background plate, applies it to the foreground edge, and creates a photorealistic edge blend that hides imperfect keying.
Workflow for fine hair with Supercomp:
1. Pull a rough key with Keylight (do not spend time perfecting the hair edge)
2. Apply Supercomp as an effect on the keyed layer
3. Feed the background plate into Supercomp's Background input
4. Enable Light Wrap at 15-25% intensity, 3-5 pixel radius
5. Enable Edge Color at 10-15% — this samples the background color at the edge and subtly blends it into the foreground, simulating color contamination
6. Enable Spill Map — Supercomp analyzes the background color and generates a targeted spill suppression map that only removes spill at the edge, preserving the rest of the foreground color
Supercomp's limitation: it adds 30-50% render time overhead. On a 4K shot with a 10-second duration, expect 2-3 minutes per frame on a standard workstation. It is not a tool for every shot in a 200-shot project. Use it on hero shots with visible hair issues, not on wide shots where hair detail is 1-2 pixels and nobody will notice a slightly crunchy edge.
Keyer Comparison for Fine Hair
| Feature | Keylight (Built-in) | Primatte 6 (Maxon) | Supercomp (Rowbyte) |
|---|
| Fine hair preservation | Adequate — loses sub-pixel detail | Good — preserves semi-transparency | N/A — compositing tool, not a keyer |
| Spill suppression quality | Basic — desaturates green globally | Good — targeted spill removal per hue | Excellent — background-aware spill map |
| Edge integration | Manual (light wrap by hand) | Manual (light wrap by hand) | Automatic light wrap and edge blend |
| Render speed (4K) | Fast — near real-time preview | Moderate — 60-70% of Keylight speed | Slow — adds 30-50% to render time |
| Cost | Free (included with AE) | Paid (~$200 standalone) | Paid (~$150) |
| Learning curve | Moderate | Moderate | Steep |
| Best for | Quick keys, well-lit screens, non-hero shots | Hero shots, fine hair, semi-transparent edges | Fixing already-keyed footage with edge issues |
Spill Suppression That Does Not Destroy Edge Detail
The Spill Suppression Trap
Every keyer includes spill suppression. Most of them work by desaturating the green channel at the foreground edge. The problem: fine hair is already low-saturation because it is semi-transparent. When the spill suppressor desaturates green at the hair edge, it also desaturates the actual hair color. Blonde hair turns grey. Light brown hair turns muddy. Red hair turns pink-grey.
The correct approach: use minimal built-in spill suppression and add a separate, manual spill removal pass.
Step 1: In Keylight, set Despill Bias to the actual foreground color. Click the eyedropper on a solid area of the subject's hair (not the edge). This tells Keylight which color to protect when removing spill. If the subject has dark hair, sample the midtone area of the hair — not the darkest shadow, not the brightest highlight.
Step 2: Add a Hue/Saturation adjustment layer above the keyed layer. Target the green hue range (roughly 90-150 degrees on the hue wheel). Reduce saturation by 15-25% in this range. This removes spill without affecting the overall image because it only targets the green channel in the green hue range.
Step 3: For stubborn spill on individual hair strands, add a Paint effect on a separate layer and manually paint out green contamination with a 1-2 pixel brush at 30-50% opacity, sampling the adjacent hair color. This is slow (5-10 minutes per frame) but produces the best results on hero close-ups.
Alternative: use the Advanced Spill Suppressor effect (AE CC 2018+). Set Method to Ultra. Set Alpha to use the matte from your keyer. Set Suppression to 50-70%. This effect is mathematically superior to Keylight's built-in suppression because it operates only on edge pixels defined by the alpha channel, not on the entire foreground.
Light Wrap Techniques for Hair Integration
Why Light Wrap Makes or Breaks Hair Composites
Light wrap is the phenomenon where background illumination bleeds around the edges of foreground objects. In a real camera, this happens optically — light from the background scatters off lens elements and wraps around foreground edges. Fine hair is the most light-wrap-dependent element in compositing because each strand is thin enough for background light to pass through and around it.
Without light wrap, a keyed hair edge sits on top of the background with no photometric relationship. The eye immediately registers it as a composite — the hair looks pasted on. With correct light wrap, the background color subtly bleeds into the hair edge, creating the optical integration that sells the composite.
Manual light wrap setup in After Effects:
1. Duplicate the background plate layer. Place it directly above the keyed foreground layer.
2. Apply Fast Box Blur (or Camera Blur) to the duplicated background: radius 5-15 pixels depending on resolution (5-8 for 1080p, 10-15 for 4K).
3. Set the blending mode of the blurred background to Screen or Add.
4. Use the foreground's alpha matte as a track matte for the blurred background (Alpha Matte).
5. Invert the matte so the blurred background only appears at the foreground edge.
6. Adjust opacity: 15-25% for subtle wrap, 30-50% for heavy backlit scenarios.
7. Precompose these layers and place the precomp between the foreground and background in the main comp.
The radius and opacity values depend on the shot. Backlit hair (strong light behind the subject) needs more wrap (20-30%, 10-15px radius). Side-lit or front-lit hair needs less (10-15%, 3-8px radius). The key test: toggle the light wrap layer on and off. If the toggle produces a visible snap (the hair pops between integrated and floating), your wrap is working. If the toggle is barely noticeable, increase the opacity or radius.
Quick Light Wrap Presets
Interior / studio green screen (controlled lighting):
Blur radius: 5-8px (4K), 3-5px (1080p)
Opacity: 10-18%
Blend mode: Screen
Exterior / bright background (daylight):
Blur radius: 8-12px (4K), 5-8px (1080p)
Opacity: 15-25%
Blend mode: Add
Backlit / strong rim light:
Blur radius: 12-20px (4K), 8-12px (1080p)
Opacity: 25-40%
Blend mode: Add
Dark background (night exterior):
Blur radius: 3-5px (4K), 2-3px (1080p)
Opacity: 5-12%
Blend mode: Screen
These are starting points. Every shot needs fine-tuning based on the specific hair color, background brightness, and camera angle. There is no universal correct value.
When to Roto Instead of Key
The Honest Threshold: When Keying Is Not Worth It
Sometimes the green screen is too poorly lit, the spill is too heavy, or the hair is too fine for any keyer to handle. Knowing when to abandon keying and switch to rotoscoping is a professional skill, not a failure.
Switch to roto when:
- The green screen has visible shadows that change the screen color by more than 20 IRE from the brightest to darkest area. Shadow-contaminated green produces inconsistent keys that flicker.
- The subject was shot against a blue or green screen that is the same hue as their clothing. Keyers cannot distinguish foreground green clothing from green background.
- The hair occupies fewer than 2 pixels at the delivery resolution. Below 2 pixels, the keyer is making up data — the result will be worse than a roto with a soft edge.
- The footage has heavy motion blur on hair. Motion blur smears the hair color with the green screen color, and no keyer can unmix them.
- You have already spent more than 15 minutes adjusting Keylight/Primatte parameters on a single shot and the hair edge still looks wrong. At 15 minutes, you could have roughed out a roto spline.
Roto approach for hair: Use Roto Brush 2 (AE 2021+) for the initial matte on the solid body and head. Then add manual mask paths for the hair region with feathering set to 5-15 pixels. The feather creates a graduated edge that mimics semi-transparent hair. Paint individual strands only if the shot is a hero close-up that will be viewed at full resolution — for most broadcast and web work, a feathered mask edge reads as convincing hair.
Hybrid approach: Key the body with Keylight (aggressive settings — Clip Black 20+, Clip White 85-), then roto just the hair region with a feathered mask. This gives you a clean body edge from the keyer and a controlled hair edge from the roto. Composite the two mattes using an Add blend mode on the alpha channels.
Shooting Tips That Make Hair Keying Possible
The best keying happens before you open After Effects. If you control the shoot:
1. Light the green screen evenly. Target less than 10 IRE variation across the screen surface (measure with a waveform monitor on set). Uneven green screens are the number one cause of bad hair keys.
2. Place the subject at least 2 meters from the green screen. This reduces spill and creates natural soft shadows on the screen that keyers handle better than hard shadows.
3. Use a backlight (rim light) on the subject at 1-2 stops above the key light. The backlight creates a bright edge on the hair that separates it from the green screen, giving the keyer more contrast to work with.
4. Shoot at the highest resolution and bit depth available. 4K 10-bit 4:2:2 keys dramatically better than 1080p 8-bit 4:2:0. If your camera supports RAW output, use it — the full chroma resolution eliminates the sub-sampling problem.
5. Avoid shooting fine hair against green screen with strong backlighting from the green screen itself. If the green screen is lit so brightly that it wraps light around the subject, the hair will be front-lit by green spill. Reduce green screen brightness until it reads as a clean, even green on the waveform — typically 55-65 IRE.