ScarlotSoft Easy Mask Conditioning
Masked inpainting conditioning without the plumbing — ScarlotSoft Easy Mask Conditioning
- conditioning
- mask
- CONDITIONING
Every masked inpainting graph has a moment where you take your conditioning, take your mask, and tell the sampler "only touch inside here, at this strength." ComfyUI's core SetMask does it with a couple of dials; ScarlotSoft Easy Mask Conditioning does the same job with the same dials plus an invert toggle, wearing the suite's theme. It takes conditioning and mask, and returns conditioning that carries the mask along, ready for a KSampler.
The inputs that matter: strength (0–10, default 1) is your mask_strength - how hard the masked region gets pushed. set_cond_area is the choice between default (mask constrains the whole conditioning) and mask bounds (only the bounding box of the mask is conditioned - the behavior you want for focused inpaints, because it lets everything outside the box do whatever). And Invert_Mask flips the mask before it's applied, which is the one extra this node has over the core equivalent. Invert is genuinely handy when your pipeline produces a "keep" mask and your sampler wants a "paint here" mask - instead of adding a mask-invert node, just flip the switch.
Mechanically it walks each conditioning entry, stamps in the mask, set_area_to_bounds, and mask_strength, and handles the edge case where a mask arrives without a batch dimension. Nothing exotic - it's the standard SetMask recipe re-implemented with Spanish-commented code and a clean UI. The output is CONDITIONING, wired straight into a KSampler's positive or negative socket.
The inpainting rules of thumb carry over unchanged. Denoise is your volume knob: this node controls where the sampler can change and how hard, but the actual repaint strength lives on the KSampler. The usual trap with mask-strength conditioning is setting it too aggressive and getting a region that doesn't blend - ease strength down toward 0.7–0.8 and pair with a feathered mask rather than a hard-edged one. And if you're doing the classic fix-a-face pass, remember the order that works: detail at the resolution the model knows, then upscale - the conditioning doesn't fix baked-in low-res faces, it fixes bad regions at their current resolution.
Install with the pack - ComfyUI Manager → search ScarlotSoft → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/scarlotsoft/ComfyUI_ScarlotSoft
No dependencies. Suite theme applies; hard-refresh after a UI-mode switch if it looks off.
Honest take: this node exists for workflow self-containment - same behavior as core SetMask, friendlier name, built-in invert. If you're building ScarlotSoft graphs, it keeps everything under one naming convention. If you're not, the core node does the same thing with one less dependency in the graph. The invert toggle is the only real differentiator, and it's a good one.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| conditioning | CONDITIONING | — | |
| mask | MASK | — | |
| strength | FLOAT | 1.000–10 | — |
| set_cond_area | COMBO | 2 options: default, mask bounds | |
| Invert_Mask | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| CONDITIONING | CONDITIONING | — |