ANR Tools

ANR Despill

Removes green or blue screen spill from a keyed element and brings back the brightness the spill took with it.

  • Comp
  • Comp & Depth pack
  • 2 inputs
  • 11 controls

Overview

Despill removes the green or blue that a screen spills onto the foreground: on skin, hair, clothes and edges. For green, each pixel's green is limited by its red and blue; the excess is the spill and is taken out, while neutral greys and whites are left alone. Blue works the same way, and Custom handles a screen colour that is not a pure green or blue.

Taking spill out also takes out brightness, which can leave edges dull or dark. Luminance Recovery puts that brightness back, tinted by Replacement Color. Spill Balance sets how strong the limit is, Spill Threshold leaves a little of the screen colour in, and Soft Edge Restriction limits the work to the soft edges of the matte. View: Spill Matte shows exactly what is removed.

It changes colour only: it does not build, erode or soften the key. Use it with your keyer, before ANR Edge Color and ANR Light Wrap.

Inputs

SourceMaskDespillOutput
  1. Sourcerequired

    The keyed element, premultiplied, with its matte in alpha. Pixels with no alpha are left as they are.

  2. Maskoptional

    Limits where spill is removed, by its alpha. Use it to protect wanted green or blue, such as a green shirt.

Output. The Source with the spill removed and its alpha unchanged. View: Spill Matte shows the removed spill instead, as a greyscale image.

Quick start

  1. Add ANR Despill after your key and connect the keyed element to Source.
  2. Set Spill Color to Green or Blue. For another screen colour, choose Custom and pick the screen's colour from the plate into Custom Spill Color.
  3. Set View to Spill Matte to see what is removed, then go back to Result.
  4. Adjust Spill Balance: lower for a gentler despill, higher for a stronger one.
  5. If edges or skin look dull or dark, raise Luminance Recovery; keep Replacement Color white for a neutral result.
  6. Protect wanted green or blue with the Mask input, or raise Spill Threshold to leave a little of it.

The panel

The node's panel as Nuke shows it, with the values of a new node. Click any control to see what it does; tabs and sections work as in Nuke.

ANR_Despill1
Amount1
Spill Balance0.5
Spill Threshold0
Soft Edge Restriction0
Spill ColorGreen
Custom Spill Color010
Luminance Recovery0.75
Highlight Protection0
Replacement Color1
Mix1
ViewResult

All controls

ANR Despill11 controls

Treatment

AmountSlideramount

Effect strength. Zero returns the original image (Light Wrap Composite still performs an Over).

Default: 1

Spill

Spill BalanceSliderspillBalance

Move from a permissive maximum of the other channels to a stronger minimum-channel limit.

For green spill: at 0 green is limited to the larger of red and blue (gentlest), at 0.5 to their average, at 1 to the smaller (strongest). Blue spill works the same way against red and green.

Default: 0.5

Spill ThresholdSliderspillThreshold

Leave this much excess spill color untouched, in straight linear RGB.

Default: 0

Soft Edge RestrictionSlideredgeRestriction

Zero treats the whole selected image. One concentrates suppression on partially transparent edges.

Default: 0

Spill ColorMenuspillPrimary

Use Green, Blue, or the custom screen color.

Default: GreenOptions: Green Blue Custom

Custom Spill ColorColourspillColor

Screen color used when Spill Color is Custom.

Default: 0 1 0

Recovery

Luminance RecoverySliderluminanceRecovery

Recover brightness lost during spill suppression using Replacement Color.

Default: 0.75

Highlight ProtectionSliderhighlightProtection

Reduce suppression of bright foreground highlights.

Default: 0

Replacement ColorColourreplacementColor

Color used to recover removed luminance. Neutral white avoids adding another colored fringe.

Only its colour matters, not its brightness: how much is recovered comes from the removed spill and Luminance Recovery. Black turns recovery off.

Default: 1

Output

MixSlidermix

Blend the entire treatment with the original, multiplied by the optional Mask alpha.

Default: 1

ViewMenuspillOutput

Result keeps corrected RGB; Spill Matte shows the effective suppressed region with original alpha.

Default: ResultOptions: Result Spill Matte

Tips

  • To despill only hair and other soft edges, raise Soft Edge Restriction toward 1: the solid parts of the element are then left alone.
  • Highlight Protection keeps bright highlights, such as a specular kick or a white shirt, from being changed.
  • Tint Replacement Color toward the new background's colour when the edges should pick up that environment's light. White adds no new colour.
  • Order in the comp: key, Despill, ANR Edge Color, ANR Light Wrap, then the Merge.

Good to know

  • Only pixels with some alpha are treated. If nothing changes at all, check the Source's alpha.
  • A premultiplied element can go straight in: the node unpremultiplies and premultiplies again by itself.
  • Runs on the CPU: no GPU and no AI model needed.

Something unclear or missing? Write to [email protected].