Indexed LoRA Loader π― π π π £π
Swap LoRAs with one number instead of rewiring your graph
- model
- clip
- model
- clip
- trigger_word
The normal way to try three LoRAs in ComfyUI is to build three Load LoRA nodes, wire them all up, and click through them one at a time. Indexed LoRA Loader is for when that gets old: you load up to 20 LoRAs into a single stack of slots, then pick which one gets applied by changing one integer. It's a "batch through my LoRA collection" node - wire the index input to a counter or an API-driven batch and you can generate a comparison grid of the same prompt across every LoRA you own without touching the graph. rgthree's Power Lora Loader is the heavyweight in this space; this one is the lightweight version that trades per-LoRA toggles for dead-simple indexing.
Mechanically it's a thin wrapper around ComfyUI's own load_lora_for_models. You feed it a model and clip, it looks at index, grabs the LoRA sitting in the lora_<index> slot, and applies it with strength_model and strength_clip (both default 1.0, range β100 to 100 - negative strengths are a real thing for style subtraction). The extra it gives you over stock: it extracts a trigger word from the LoRA's filename and hands it to you as a STRING output, so you can wire it straight into your prompt. The extraction rule is simple: everything before _lora in the filename. Snorricam-3434_lora.safetensors β Snorricam-3434. The trigger_suffix input (default _lora) lets you change that marker if your naming differs.
Inputs worth knowing:
number_of_loras(1β20) - how many slots show up. The node's frontend JS hides unused slots, so you're not staring at 19 empty dropdowns.index(1-based) - which slot gets applied.lora_1β¦lora_20- the LoRA pickers; set any to "none" to skip it.strength_model/strength_clip- strengths, applied to the selected LoRA only.
Outputs: model and clip (the loaded pipeline), plus trigger_word (STRING).
Install is the pack install: ComfyUI Manager β search "BETA" or "Burgstall" β ComfyUI-BETA-Cropnodes (recently renamed ComfyUI-BETA-Helpernodes). Or:
cd ComfyUI/custom_nodes
git clone https://github.com/Burgstall-labs/ComfyUI-BETA-Cropnodes
restart, done. No extra dependencies for this node, and it reads your LoRAs from the standard ComfyUI/models/loras folder.
The failure mode to know is a feature: if index is out of range, a slot is "none", or the LoRA fails to load, the node doesn't crash - it returns your original model and clip unchanged and prints a warning. That's graceful, but it's also easy to miss if you're batch-running. Same for the trigger word: it's only as good as your filenames. If your files don't follow the name_lora.safetensors convention, the extracted "trigger word" is garbage, and the node has no way to know - that's the one thing you'll want to eyeball before trusting the output in a prompt.
Inputs (27)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | β | |
| clip | CLIP | β | |
| number_of_loras | INT | 11β20 | β |
| index | INT | 11β20 | β |
| strength_model | FLOAT | 1.00-100β100 | β |
| strength_clip | FLOAT | 1.00-100β100 | β |
| trigger_suffix | STRING | _lora | β |
| lora_1opt | COMBO | none | 1 options: none |
| lora_2opt | COMBO | none | 1 options: none |
| lora_3opt | COMBO | none | 1 options: none |
| lora_4opt | COMBO | none | 1 options: none |
| lora_5opt | COMBO | none | 1 options: none |
| lora_6opt | COMBO | none | 1 options: none |
| lora_7opt | COMBO | none | 1 options: none |
| lora_8opt | COMBO | none | 1 options: none |
| lora_9opt | COMBO | none | 1 options: none |
| lora_10opt | COMBO | none | 1 options: none |
| lora_11opt | COMBO | none | 1 options: none |
| lora_12opt | COMBO | none | 1 options: none |
| lora_13opt | COMBO | none | 1 options: none |
| lora_14opt | COMBO | none | 1 options: none |
| lora_15opt | COMBO | none | 1 options: none |
| lora_16opt | COMBO | none | 1 options: none |
| lora_17opt | COMBO | none | 1 options: none |
| lora_18opt | COMBO | none | 1 options: none |
| lora_19opt | COMBO | none | 1 options: none |
| lora_20opt | COMBO | none | 1 options: none |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| model | MODEL | β |
| clip | CLIP | β |
| trigger_word | STRING | β |