Skip to content

Color Difference Key


Controls

Parameter / Script Name Type Default Function
Output mode / output Choice Final
Screen Color / key_color Color 0, 1, 0, 1 The screen color to key
Pre-Matte / Pre-Matte Category -
Chroma Smoothing / pre_matte_chroma_blur_size Float 2D 0, 0
Hue Shift / hue_shift Float 0
Key / Key Category -
Clean plate / clean_plate Image - Optional clean plate input. If set, non-transparent pixels of the clean plate take precedence over the specified screen color.
Alpha bias / alpha_bias Color 1, 1, 1, 1 Alpha bias
Despill bias / despill_bias Color 1, 1, 1, 1 Despill bias
Balance / despill_balance Float 0.5
Matte / Matte Category -
Garbage matte / garbage_matte Image -
Core matte / core_matte Image -
Black Point / matte_blackpoint Float 0 Sets the black point (typically the darkest pixel). Any pixels of this value are set to 0. In other words, this color is turned into pure black
White Point / matte_whitepoint Float 1 Sets the white point (typically the lightest pixel). Any pixels of this value are set to 1. In other words, this color is turned into pure white.
Lift / matte_lift Float 0 Any pixels that are black are set to this color. This allows you to, for example, match the tonal range of one clip with that of another.
Gain / matte_gain Float 1 Any pixels that are white are set to this color. This allows you to, for example, match the tonal range of one clip with that of another.
Multiply / matte_multiply Float 1 Multiplies the result by this factor. This has the effect of lightening the result while preserving the black point.
Offset / matte_offset Float 0 Offsetting adds a fixed value to the result, which, in effect lightens the whole image. You can also add a negative value to the result, in which case the whole image gets darker.
Gamma / matte_gamma Float 1 Applies a constant gamma value to the result. This lightens or darkens the midtones.
Invert / matte_invert Boolean Off Inverts the matte
Erode/Dilate / matte_erode_dilate_size Float 0 Erodes or dilates the matte
Fringe restoration / matte_fringe_restore Boolean Off TODO
Fringe size / matte_fringe_size Float 0 TODO
Post blur / matte_post_blur_size Float 0 Blurs the corrected matte
Output / Output Category -
Despill / despill Boolean On Whether to perform despill. When unchecked, only applies the matte.
Replace Method / replace_method Choice None
Replacement Color / replacement_color Color 1, 1, 1, 1 TODO
Unpremultiply / output_unpremult Boolean Off TODO