CreateHookLora_motorway_edition
A LoRA that can be scheduled over time, wired into the Motorway
- MOTORWAY 🚌💨
- MOTORWAY 🚌💨
A normal LoRA loader applies the LoRA at one strength for the whole sample. A hook LoRA can have its strength animated across the sampling timeline - strong while composition forms, fading out for detail passes, or any curve you can keyframe. CreateHookLora is the node that builds one of these scheduled LoRAs, and the _motorway_edition is it running against agilly1989's Motorway bus.
How it works
The core node (from nodes_hooks.py) wraps a LoRA load in a HOOKS object instead of applying it directly. You pick the lora_name from the dropdown (same list as the plain LoraLoader - everything in ComfyUI/models/loras), set model and CLIP strengths, and get back a HOOKS object that a compatible sampler applies. The scheduling comes from pairing it with keyframe groups: build a timeline with the CreateHookKeyframes* nodes, and the hook LoRA follows it. No keyframes, and a hook LoRA behaves like a static LoRA at its base strength - the scheduling is what makes it special.
Inputs and outputs
- MOTORWAY 🚌💨 - the bus, required.
- INPUT_prev_hooks_key - key of an existing HOOKS group to append this LoRA onto, default
prev_hooks. Chaining hooks lets you stack several scheduled LoRAs in one group. - lora_name - the LoRA dropdown, set directly on the node.
- strength_model / strength_clip - model and CLIP strengths, -20 to 20, both default 1.
- OUTPUT_HOOKS_key - key for the HOOKS object, default
HOOKS.
Only output: the Motorway. The HOOKS object rides the bus to a hook-capable sampler.
Installing
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
Restart, or ComfyUI Manager → "ComfyUI_agilly1989_motorway". No pip deps; you supply the LoRA files.
Caveats
Pack-wide: active beta, "BIG BROKEN WITH ASYNC" README banner, _motorway_edition clones commented out of __init__.py in the checked version (re-enable ClonedNodeMapping if missing), keys exact and case-sensitive. The bigger caveat is upstream: hooks are marked EXPERIMENTAL in core ComfyUI, and not every sampler honors them - if your sampler doesn't support hook scheduling, this node silently degrades to a plain LoRA load. Check that before you invest in a keyframe rig. If you just want a static LoRA in a Motorway graph, the regular LoraLoader (or its own motorway clone if one exists) is the simpler path.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — | |
| INPUT_prev_hooks_key | STRING | prev_hooks | — |
| lora_name | COMBO | 0 options: | |
| strength_model | FLOAT | 1.00-20–20 | — |
| strength_clip | FLOAT | 1.00-20–20 | — |
| OUTPUT_HOOKS_key | STRING | HOOKS | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — |