ClownRegionalConditioning_ABC
Three masked prompt regions in one image
- conditioning_A
- conditioning_B
- conditioning_C
- mask_A
- mask_B
- mask_C
- weights
- region_bleeds
- conditioning
Same idea as the two-region node, one more zone. This is RES4LYF's three-region regional prompt: prompt A in mask A, B in mask B, C in mask C, all resolved in a single generation. Reach for it when a two-way split isn't enough - a foreground subject, a midground element, and a background, say, each with its own description.
Regional prompting is one of RES4LYF's marquee features, advertising "unlimited zones" (the author's shown over ten in one image) across HiDream, Flux, Chroma, SD3.5, SD1.5, SDXL, AuraFlow, and Wan. The ABC node is the sweet spot between the simple AB node and the full unlimited-zones setup: three named regions, wired explicitly, no bundling required.
How it works
You encode three prompts to CONDITIONING and draw three MASKs. The node combines them into one CONDITIONING output that tells the sampler to paint each prompt inside its matching mask. That single output plugs into your sampler's positive conditioning input. As with the rest of the regional family, it runs through RES4LYF's own sampling path - pair it with the pack's samplers, not a stock KSampler.
The inputs that matter
conditioning_A/B/C+mask_A/B/C- the three prompt/region pairs. Anything not covered by a mask falls back to the model's default behavior for that area.weight(default1) - global strength of the regional effect. Lower it if the three zones feel too rigidly walled off from each other.mask_type(defaultboolean) - hard-edged (boolean) or blended (gradient), plus combinations across the three regions. With three zones, the combination options (gradient_AB, gradient_BC, etc.) let you soften some borders while keeping others crisp.region_bleed(default0) - controlled leakage across borders, to keep the three areas from reading as three separate images stitched together.edge_width(default0) - feathering at the seams.
The start_step/end_step, weight_scheduler, region_bleed_start_step, and invert_mask controls tune timing and application; optional weights / region_bleeds (SIGMAS) schedule them per step. Output is conditioning (CONDITIONING).
Installing RES4LYF
ComfyUI Manager: search RES4LYF, install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/ClownsharkBatwing/RES4LYF
pip install -r RES4LYF/requirements.txt
Portable users: embedded pip under python_embedded/Scripts/. Restart, hard-refresh with F5. No model downloads; the base model must be a supported family.
Common issues
Three regions is a lot to balance. Build up. Get two regions working with the AB node first, then move to ABC and add the third. Debugging three prompts and three masks at once is how people give up on regional prompting.
Overlapping masks. With three masks it's easy to leave gaps or overlaps. Where two masks overlap, behavior gets ambiguous; where none cover, the model free-runs. Draw them to tile the canvas cleanly if you want full control.
Zones feel pasted-on. Add a touch of region_bleed and some edge_width, and consider a gradient mask_type so the transitions read naturally.
Nothing happened on a stock sampler. Regional conditioning is tied to RES4LYF's sampling path - route the output through the pack's sampler.
Inputs (17)
| Name | Type | Default | Description |
|---|---|---|---|
| weight | FLOAT | 1.00-10000–10000 | — |
| region_bleed | FLOAT | 0.00-10000–10000 | — |
| region_bleed_start_step | INT | 00–10000 | — |
| weight_scheduler | COMBO | constant | 12 options: constant, simple, sgm_uniform, karras, exponential, ddim_uniform, +6 |
| start_step | INT | 00–10000 | — |
| end_step | INT | 100-1–10000 | — |
| mask_type | COMBO | boolean | 14 options: gradient, gradient_A, gradient_B, gradient_C, gradient_AB, gradient_AC, +8 |
| edge_width | INT | 00–10000 | — |
| invert_mask | BOOLEAN | false | — |
| conditioning_Aopt | CONDITIONING | — | |
| conditioning_Bopt | CONDITIONING | — | |
| conditioning_Copt | CONDITIONING | — | |
| mask_Aopt | MASK | — | |
| mask_Bopt | MASK | — | |
| mask_Copt | MASK | — | |
| weightsopt | SIGMAS | — | |
| region_bleedsopt | SIGMAS | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| conditioning | CONDITIONING | — |