Nodes/ComfyUI_agilly1989_motorway/ConditioningSetArea_motorway_edition
ComfyUI Node

ConditioningSetArea_motorway_edition

Regional prompting in pixels, fed by the Motorway

By agilly1989·Created 2 years ago·Updated about a year ago· 7
ConditioningSetArea_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
INPUT_conditioning_keyconditioning
width64
height64
x0
y0
strength1.00
OUTPUT_CONDITIONING_keyCONDITIONING

ConditioningSetArea is how you do regional prompting the classic way: it takes a conditioning stream and confines it to a rectangular region of the image, in pixel coordinates, so a prompt like "a red car" only steers the part of the latent where the car should be. This _motorway_edition clone keeps all of that and swaps the wiring - the conditioning arrives from agilly1989's keyed motorway bag and the area-restricted result goes back in.

This is the ancestor of the modern regional approaches, and it's still genuinely useful for multi-subject compositions on SDXL-lineage models: give each subject its own ConditioningSetArea, then combine. The catch is that it's fiddly - you're placing rectangles by hand in pixel space, and the strength/overlap tuning is where people spend their evenings. The motorway version doesn't change any of that; it only changes where the conditioning is read from and written to.

The fields

The schema is the stock area node plus one key and the bag:

  • MOTORWAY 🚌💨 - in and out.
  • INPUT_conditioning_key (default conditioning) - bag key for the conditioning to confine.
  • width, height - the rectangle size in pixels. Defaults are 64×64, which is a start, not a recommendation; you'll typically set these to a real fraction of your output resolution. Both step by 8, which matters because latents are 8× compressed.
  • x, y - the rectangle's top-left corner in pixels.
  • strength - 0 to 10, default 1.0. How hard the region's conditioning bites. Below 1 softens the region; above 1 is where you go when a region won't take hold (though too high gives you seams).
  • OUTPUT_CONDITIONING_key (default CONDITIONING) - where the region-restricted conditioning lands.

Single output, the motorway itself.

Install and the fine print

Install is easy - pure Python, no pip requirements, no models:

cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway

Restart ComfyUI, or use ComfyUI Manager to install ComfyUI_agilly1989_motorway.

And the fine print that follows every node in this pack: single-author beta, README banner "BIG BROKEN WITH ASYNC WILL FIX WHEN I GET THE TIME/MOTIVATION," and the generated clones are disabled in current releases - __init__.py no longer registers them. Fresh installs show MotorwayStart and the Motorway AxB ramps; this clone may be absent depending on your version. If it is, stock ConditioningSetArea plus a Motorway 0x1 ramp reproduces it exactly. One thing to remember with a node this fiddly: if you see 'MotorwayClass' object has no attribute 'hash_', it's not your rectangle math that's wrong - it's that a key (almost always conditioning) was never written into the bag upstream. Fix the key, then go back to fighting with x/y.

Categoryagilly1989 Nodes/Motorway-ed/conditioning

Inputs (8)

NameTypeDefaultDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨
INPUT_conditioning_keySTRINGconditioning
widthINT6464–16384
heightINT6464–16384
xINT00–16384
yINT00–16384
strengthFLOAT1.000–10
OUTPUT_CONDITIONING_keySTRINGCONDITIONING

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨