Nodes/ComfyUI_agilly1989_motorway/CombineHooks4_motorway_edition
ComfyUI Node

CombineHooks4_motorway_edition

Four hook bundles, one keyed merge on the Motorway

By agilly1989·Created 2 years ago·Updated about a year ago· 7
CombineHooks4_motorway_edition
  • MOTORWAY 🚌💨
  • MOTORWAY 🚌💨
INPUT_hooks_A_keyhooks_A
INPUT_hooks_B_keyhooks_B
INPUT_hooks_C_keyhooks_C
INPUT_hooks_D_keyhooks_D
OUTPUT_HOOKS_keyHOOKS

CombineHooks4 is the four-lane version of the hook combiner: it takes four hook bundles and merges them into one so they all apply during sampling. This _motorway_edition clone keeps that exact behavior and swaps the transport - instead of four wires in and one wire out, everything travels through agilly1989's keyed motorway bag.

If you've somehow landed here without meeting hooks yet: hooks are the advanced feature that attaches regional or temporal behavior to the sampling process, and CombineHooks is how you stack several of them. This is a power-user node; the motorway version is a power-user node wearing a different harness. What you get out of it is a workflow where the four hook bundles are bag values pulled by key, merged, and written back under one key - no wires to untangle, and no way to see at a glance what's feeding what.

The seven fields

Strictly key strings plus the bag:

  • MOTORWAY 🚌💨 - in and out.
  • INPUT_hooks_A_key, INPUT_hooks_B_key, INPUT_hooks_C_key, INPUT_hooks_D_key - defaults hooks_A through hooks_D. The four bundles to merge, each located by its key in the bag.
  • OUTPUT_HOOKS_key (default HOOKS) - the merged bundle's key.

Single output, the motorway itself, same as every node in the family. Under the hood it's stock CombineHooks4: pull all four, merge, store.

Install and the standing caveat

Install is trivial - the pack is pure Python with no pip requirements and no model files:

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

Restart ComfyUI, or pull it via ComfyUI Manager as ComfyUI_agilly1989_motorway.

The caveat, because it applies to every node in this pack and this one is no exception: single-author beta project, README banner "BIG BROKEN WITH ASYNC WILL FIX WHEN I GET THE TIME/MOTIVATION," and the machine-generated _motorway_edition clones are disabled in current releases - the registration in __init__.py is commented out. Fresh installs show you MotorwayStart and the Motorway AxB ramps; whether this clone is in your menu depends on the version you're on. If it's missing, don't fight it - CombineHooks4 plus four Motorway 0x1 ramps does the same thing with visible wiring. And the pack's one real error, 'MotorwayClass' object has no attribute 'hash_', means a referenced key was never written into the bag. With four inputs to name, a single typo in any of them produces exactly that message, so check your keys before you suspect the hook logic.

Categoryagilly1989 Nodes/Motorway-ed/advanced/hooks/combine

Inputs (6)

NameTypeDefaultDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨
INPUT_hooks_A_keySTRINGhooks_A
INPUT_hooks_B_keySTRINGhooks_B
INPUT_hooks_C_keySTRINGhooks_C
INPUT_hooks_D_keySTRINGhooks_D
OUTPUT_HOOKS_keySTRINGHOOKS

Outputs (1)

NameTypeDescription
MOTORWAY 🚌💨MOTORWAY 🚌💨