Nodes/ComfyUI_agilly1989_motorway/CLIPTextEncodeSD3_motorway_edition
ComfyUI Node

CLIPTextEncodeSD3_motorway_edition

The triple-encoder SD3 text encode, living on the Motorway

By agilly1989·Created 2 years ago·Updated about a year ago· 7
CLIPTextEncodeSD3_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
INPUT_clip_keyclip
clip_l
clip_g
t5xxl
empty_padding
OUTPUT_CONDITIONING_keyCONDITIONING

SD3 is where prompting stopped being a single text encoder and became a committee. CLIPTextEncodeSD3 feeds your prompt through three separate encoders - the two CLIPs plus the big T5-XXL - and merges their reads into one conditioning vector. This _motorway_edition variant is that node wearing a pipe harness: the CLIP model comes from a keyed "motorway" bag, and the finished conditioning goes back into the bag, all without a single data wire between them.

The motorway pack (agilly1989's ComfyUI_agilly1989_motorway) is a dict-that-rides-the-graph. MotorwayStart makes an empty bag, Motorway AxB nodes write values in under string keys and read them back out, and every _motorway_edition node is an auto-generated clone of a core ComfyUI node that plugs into that bus. This one is the SD3 member of the family. If you're on Flux or SD3.5 and your workflow is pipe-driven, this is how its conditioning gets made.

The fields you'll touch

Beyond the MOTORWAY 🚌💨 in and out, the schema keeps the SD3 encode essentials as widgets, with the model itself keyed off the bus:

  • INPUT_clip_key (default clip) - the bag key holding the SD3/Flux CLIP model.
  • clip_l, clip_g, t5xxl - the three per-encoder prompts, all multiline. This is the genuinely useful part: you can give each encoder its own text, which is how people split a short tag list to CLIP and let T5 carry the natural-language description.
  • empty_padding - the enum (none / empty_prompt) for how to pad when a sub-encoder's prompt is blank. Leave it at none unless a workflow tells you otherwise.
  • OUTPUT_CONDITIONING_key (default CONDITIONING) - where the merged result is stored.

Output is the bag itself, and that's the whole design: chain nodes one after another and pass values by key instead of dragging wires.

Install and the honest warning

Trivial install - the pack is pure Python, no pip requirements, no model downloads:

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

Restart, or use ComfyUI Manager and search ComfyUI_agilly1989_motorway.

Here's the part that matters more than any field on this node: it's a machine-generated beta clone. The pack's own README opens "BIG BROKEN WITH ASYNC WILL FIX WHEN I GET THE TIME/MOTIVATION," and in current releases the _motorway_edition registration is commented out of __init__.py. A fresh install will show you the Motorway AxB ramps, but this node may simply not exist in your menu. If it does, treat it as a fun way to route SD3 conditioning through a pipe; if it doesn't, you've lost nothing - the stock CLIPTextEncodeSD3 plus a couple of ramp nodes does the identical job with more wires and fewer surprises. The one error you might still meet - 'MotorwayClass' object has no attribute 'hash_' - just means a key you referenced was never written into the bag. That's pipe routing in one sentence.

Categoryagilly1989 Nodes/Motorway-ed/advanced/conditioning

Inputs (7)

NameTypeDefaultDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨
INPUT_clip_keySTRINGclip
clip_lSTRING
clip_gSTRING
t5xxlSTRING
empty_paddingCOMBO2 options: none, empty_prompt
OUTPUT_CONDITIONING_keySTRINGCONDITIONING

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨