ComfyTV/Keyinggenerated
PIK Keyer(PIKStage)
PIK Keyer (class PIKStage) is the keying stage in the ComfyTV package, listed under the ComfyTV/Keying category.
PIK Stage
video
clean_plate_video
clean_plate
in_mask
out_mask
bg_video
video
use_alpha_bias
screen_subtraction
ComfyTV
Description
PIK Keyer (class PIKStage) is the keying stage in the ComfyTV package, listed under the ComfyTV/Keying category. It takes a video source and a set of optional references, clean plates, masks, and a background video, then produces a single keyed video output.
Two required boolean controls, use_alpha_bias and screen_subtraction, determine how alpha bias and screen subtraction are handled. Both are enabled by default. The node is intended for keying workflows where a clean plate, mask, or replacement background can improve the separation of foreground from screen.
Inputs
| Input | Type | Required | Default | Description |
|---|---|---|---|---|
use_alpha_bias | BOOLEAN | Yes | true | Required boolean widget. Enables alpha bias in the keying result. When enabled, the node applies its alpha bias behavior to the computed alpha; disable it to skip that adjustment. |
screen_subtraction | BOOLEAN | Yes | true | Required boolean widget. Enables screen subtraction, which removes or reduces the background screen contribution during keying. Disable it to keep the key without screen subtraction. |
video | COMFYTV_VIDEO | No | None | Primary video to key. Although optional in the node schema, this is normally the main footage input. Connect the source video here. |
clean_plate_video | COMFYTV_VIDEO | No | None | Optional video clean plate. Use a clean plate clip when the background reference changes over time. |
clean_plate | COMFYTV_IMAGE | No | None | Optional still-image clean plate. Use a single clean plate frame as the background reference. |
in_mask | COMFYTV_IMAGE | No | None | Optional input mask. Typically used to restrict or guide the keying operation to a region of the frame. |
out_mask | COMFYTV_IMAGE | No | None | Optional output mask image. Connect an image mask here to affect output mask handling or to combine with the keyed result's mask. |
bg_video | COMFYTV_VIDEO | No | None | Optional background video. When supplied, it can be used to composite the keyed foreground over a new background. |
Outputs
| Output | Type | Description |
|---|---|---|
| Output 1 | COMFYTV_VIDEO | The keyed video result. Connect this to video processing, preview, or save nodes. It is a video type, not an image batch. |
Usage Notes
- Both required boolean controls default to
true. If you need to isolate the effect of one control or skip one stage of processing, toggle the relevant option off. - The clean plate can be supplied as a still image with
clean_plateor as a video withclean_plate_video. Use the video variant when the screen or lighting changes over time. in_maskandout_maskare optional image masks. They are useful for limiting the key to a region or for supplying an external mask to the output handling.bg_videois optional. If connected, use a background clip that matches the length or intended edit of the keyed foreground.- The schema marks
videoas optional, but it is the primary footage input. Connect it for normal keying workflows. - The node does not expose a key color parameter in its input schema. Its exposed keying controls are the alpha bias and screen subtraction toggles, plus the optional reference, mask, and background inputs.
- Look for the node under
ComfyTV/Keyingin the node menu, or search for "PIK Keyer".
Comments
Sign in with GitHub to join the discussion.