ComfyUI Node

Fit to Plate

Prepares generated frames for compositing: resizes them to the plate, aligns them to it, matches colour and grain at the edge of the edit, and returns the edit mask at plate size, grown, softened and steady from frame to frame. Feed both outputs to Image Composite Masked.

By AInVFX·Created 5 days ago·Updated about 17 hours ago· 2
Fit to Plate
  • plate
  • image
  • mask
  • image
  • mask
◄aligntrue►
◄max_shift8.0►
◄match_colortrue►
◄grain1.00►
◄grow8►
◄feather12►
◄steady2►
CategoryAInVFX/Paint a plate

Inputs (10)

NameTypeDefaultDescription
plateIMAGEThe plate, in the same colour space as 'image'.
imageIMAGEGenerated frames, any size.
alignBOOLEANtrueMeasure a small shift per frame, smooth it over time, remove it.
max_shiftFLOAT8.00–64Largest shift in pixels treated as misalignment.
match_colorBOOLEANtrueMatch colour and exposure to the plate at the edge of the edit, spread smoothly inside it.
grainFLOAT1.000–2Add grain up to the plate's level. 0 adds none.
growINT80–256Grow the mask, in plate pixels.
featherINT120–256Soften the mask edge, in plate pixels.
maskoptMASKThe edited area, any size. Empty means no edit.
steadyoptINT20–12Frames on each side over which the mask edge, the shift and the colour match are smoothed. 0 treats every frame on its own.

Outputs (2)

NameTypeDescription
imageIMAGE—
maskMASK—