CombineHooks2_motorway_edition
CombineHooks, folded into the Motorway's keyed lane
- MOTORWAY 🚌💨
- MOTORWAY 🚌💨
Hooks are ComfyUI's newer mechanism for attaching per-region behavior - a LoRA that only applies to part of the denoise, or a patch that switches mid-sampling - and CombineHooks is the node that merges two separate hook bundles into one so they apply together. This _motorway_edition is that combiner, in its two-input form, wired for agilly1989's motorway pipe pack.
Which is to say: this is a node you reach for in advanced sampling setups, and only there. If you've never touched hooks, this isn't where you start - the motorway version doesn't make them friendlier, it just changes where the hooks come from and go to. What it does do is let a pipe-driven workflow treat two hook bundles as bag values, combine them, and put the merged bundle back in the bag under one key.
The five fields
The schema is mostly key strings, which is the whole pattern:
MOTORWAY 🚌💨- the bag, in and out.INPUT_hooks_A_key(defaulthooks_A) - bag key for the first hook bundle.INPUT_hooks_B_key(defaulthooks_B) - bag key for the second.OUTPUT_HOOKS_key(defaultHOOKS) - where the combined bundle is written.
Single output, the motorway itself. Mechanically it's stock CombineHooks2 under the hood: pull the two bundles from the bag by key, concatenate them, store the result. Nothing about hook semantics changes - only the transport.
Install and the caveat you already know
The install is the easy part - pure Python, no pip requirements, no models:
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
Restart ComfyUI, or search ComfyUI_agilly1989_motorway in ComfyUI Manager.
And the caveat follows every node in this pack, so here it is one more time, plain: this is a single-author beta, the README's own banner is "BIG BROKEN WITH ASYNC WILL FIX WHEN I GET THE TIME/MOTIVATION," and the machine-generated clones were disabled in newer releases - __init__.py no longer registers them. If you install today and see only MotorwayStart and the Motorway AxB ramps in the menu, this node isn't available to you without re-enabling the clone loader, and honestly the plain CombineHooks2 plus two ramps is the more reliable way to get the same result. Where you will meet the motorway's signature error ('MotorwayClass' object has no attribute 'hash_') is when a key you referenced was never written into the bag - with hooks, that usually means an upstream hook node never ran or published under a different key. Trace the keys, not the wires.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — | |
| INPUT_hooks_A_key | STRING | hooks_A | — |
| INPUT_hooks_B_key | STRING | hooks_B | — |
| OUTPUT_HOOKS_key | STRING | HOOKS | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — |