Overview
PixPipeline correction nodes such as Brightness and Gaussian Blur do not have their own mask inputs (the local-correction principle in ยง2.8). Instead, use this node to combine a globally corrected version with the original through a mask.
Original โโโโโโโโโโโโโโโโโโ
โโ [Blend By Mask] โโ Result
Original โ [Brightness] โโโ โ
Mask โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Technical details
- A mask value from 0 to 1 linearly interpolates
original โ processed, so a grayscale mask can control partial strength. - Use the default
Premultipliedmode for ordinary image compositing. It ignores RGB hidden in fully transparent pixels, avoids dark or colored fringes, and canonicalizes a zero-alpha result to transparent black. - Choose
StraightRGBAonly when the raw RGBA values, including transparent RGB, must be interpolated independently. Existing v2 projects migrate to this mode to preserve their previous output. - If the processed image is smaller than the canvas, areas outside it are treated as transparent during blending.
Usage tips
- When you want to brighten or blur only one area, do not look for a mask input on the
correction node. Always build this pattern: original + globally corrected version
- mask. This is the standard PixPipeline approach.
- Branch the original image in two, correct only one branch, then merge both in this node. This Y-shaped merge is the visual signature to look for in the graph.
- A grayscale mask also supports partial application, such as 50% strength, through linear interpolation.
- Keep
Premultipliedfor visual compositing; reserveStraightRGBAfor compatibility or workflows that intentionally edit hidden transparent RGB. - Common combinations are also available as official custom nodes such as MaskedBrightness.
Common pitfalls
- original and processed are reversed: processed appears in white mask areas. If
the effect is reversed, swap the connections or turn
invertON. - A small mask behaves strangely at the edge: use
outsideto explicitly choose how areas outside the mask are handled (original, processed, or transparent). - Preparing three inputs feels cumbersome: branch from the same image; you do not need to draw the original twice.
Examples
- Local brightness adjustment: combine the original and its
Brightnessversion only in an area drawn withPath Mask. - Partial blur: blend a
Gaussian Blurversion with a soft mask fromHistogram Scanfor a depth-of-field look. - Official custom nodes:
MaskedBrightness/MaskedBlur/MaskedHSVAdjustare wrappers around this node.
Related nodes
mask/erase_by_maskโ cut out or erase instead of blendingthreshold/path_maskโ mask sourcesblendโ full-image blending without a maskmask_booleanโ combines multiple masks