Nodes/RES4LYF/ClownRegionalConditioning_ABC
ComfyUI Node Runs on cloud

ClownRegionalConditioning_ABC

Three masked prompt regions in one image

By ClownsharkBatwing·Created 2 years ago·Updated 18 days ago· 1,222
ClownRegionalConditioning_ABC
  • conditioning_A
  • conditioning_B
  • conditioning_C
  • mask_A
  • mask_B
  • mask_C
  • weights
  • region_bleeds
  • conditioning
weight1.00
region_bleed0.00
region_bleed_start_step0
weight_schedulerconstant
start_step0
end_step100
mask_typeboolean
edge_width0
invert_maskfalse

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 (default 1) - global strength of the regional effect. Lower it if the three zones feel too rigidly walled off from each other.
  • mask_type (default boolean) - 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 (default 0) - controlled leakage across borders, to keep the three areas from reading as three separate images stitched together.
  • edge_width (default 0) - 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.

CategoryRES4LYF/conditioning

Inputs (17)

NameTypeDefaultDescription
weightFLOAT1.00-10000–10000
region_bleedFLOAT0.00-10000–10000
region_bleed_start_stepINT00–10000
weight_schedulerCOMBOconstant12 options: constant, simple, sgm_uniform, karras, exponential, ddim_uniform, +6
start_stepINT00–10000
end_stepINT100-1–10000
mask_typeCOMBOboolean14 options: gradient, gradient_A, gradient_B, gradient_C, gradient_AB, gradient_AC, +8
edge_widthINT00–10000
invert_maskBOOLEANfalse
conditioning_AoptCONDITIONING
conditioning_BoptCONDITIONING
conditioning_CoptCONDITIONING
mask_AoptMASK
mask_BoptMASK
mask_CoptMASK
weightsoptSIGMAS
region_bleedsoptSIGMAS

Outputs (1)

NameTypeDescription
conditioningCONDITIONING