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

InputTypeRequiredDefaultDescription
use_alpha_biasBOOLEANYestrueRequired 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_subtractionBOOLEANYestrueRequired boolean widget. Enables screen subtraction, which removes or reduces the background screen contribution during keying. Disable it to keep the key without screen subtraction.
videoCOMFYTV_VIDEONoNonePrimary video to key. Although optional in the node schema, this is normally the main footage input. Connect the source video here.
clean_plate_videoCOMFYTV_VIDEONoNoneOptional video clean plate. Use a clean plate clip when the background reference changes over time.
clean_plateCOMFYTV_IMAGENoNoneOptional still-image clean plate. Use a single clean plate frame as the background reference.
in_maskCOMFYTV_IMAGENoNoneOptional input mask. Typically used to restrict or guide the keying operation to a region of the frame.
out_maskCOMFYTV_IMAGENoNoneOptional output mask image. Connect an image mask here to affect output mask handling or to combine with the keyed result's mask.
bg_videoCOMFYTV_VIDEONoNoneOptional background video. When supplied, it can be used to composite the keyed foreground over a new background.

Outputs

OutputTypeDescription
Output 1COMFYTV_VIDEOThe 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_plate or as a video with clean_plate_video. Use the video variant when the screen or lighting changes over time.
  • in_mask and out_mask are optional image masks. They are useful for limiting the key to a region or for supplying an external mask to the output handling.
  • bg_video is optional. If connected, use a background clip that matches the length or intended edit of the keyed foreground.
  • The schema marks video as 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/Keying in the node menu, or search for "PIK Keyer".

Comments

Sign in with GitHub to join the discussion.

Loading comments…