Nodes/CornmeisterNL PowerPack/Power LoRA Selector
ComfyUI Node

Power LoRA Selector

Flip between LoRAs like a character select screen

By Cornmeister·Created 8 months ago·Updated 8 months ago· 0
Power LoRA Selector
  • model
  • clip
  • cfg_1
  • model
  • clip
  • trigger
active1

If you've ever swapped LoRAs by rewiring a graph - unplugging one, dragging another in, praying you reconnect the same sockets - this node is the upgrade. Power LoRA Selector lets you wire up a whole roster of LoRA configs once, then flip between them with a single dropdown. Fast character testing is the entire use case: instead of editing wires, you change one selection and queue again.

Here's the flow in the CornmeisterNL PowerPack. Each Power LoRA Configurator builds a LORA_CFG card (LoRA file + trigger word + strengths). You feed several of those into the Selector's inputs, feed the Selector your model and clip, and pick which card is "active." The Selector applies exactly that one LoRA to the model and passes everything through. And - the part people love - it outputs the active LoRA's trigger word as a string, so your prompt can adapt automatically to whatever you selected.

How it works

The Selector takes model and clip in, plus a widget called active that starts as "1". The frontend turns that widget into a combo dropdown populated from the configs you've actually connected - labeled with each config's trigger word, not cfg_3. So the dropdown reads "1: sarah_v3", "2: zephyr_style", and you just pick one.

Under the hood it reads the active config, loads the LoRA file from models/loras with comfy.utils.load_torch_file, and applies it via comfy.sd.load_lora_for_models - the same machinery any LoraLoader uses. If the active config is (none) or nothing is connected, model and clip pass through untouched, which is the pack's "never break execution" philosophy in action: an unconfigured selector behaves like a wire.

The inputs and outputs that matter

  • model (MODEL) and clip (CLIP) - the un-LoRA'd model and text encoder from your loader.
  • active - the dropdown. This is the whole interface: click, choose, run.
  • cfg_1, cfg_2, … - LORA_CFG inputs. You start with one; the frontend adds another slot every time you connect a config, up to 50. Only connected configs appear in the dropdown, so your select screen only ever lists real options.

Outputs:

  • model and clip - the patched versions, straight into your KSampler and CLIP Text Encode.
  • trigger (STRING) - the active LoRA's trigger word, or "" if nothing active. This is the payoff: feed it into Power Text Concat's trigger input and your prompt builder prepends the right trigger automatically. Swap the selection, and the prompt swaps with it.

Install

It's in the CornmeisterNL PowerPack, so install the pack:

cd ComfyUI/custom_nodes
git clone https://github.com/Cornmeister/ComfyUI-CornmeisterNL-PowerPack.git

Restart ComfyUI (watch for ⚡ [CornmeisterNL Powerpack] Backend loaded), or grab it via ComfyUI Manager by searching "CornmeisterNL PowerPack". Dependencies are just requests and Pillow.

Where people get burned

  • Exactly one LoRA at a time. This is a selector, not a stacker. If you want three LoRAs on the model simultaneously, use a different node - this one is specifically about picking one quickly.
  • The dropdown looks empty. It lists "1: (connect a cfg)" until you connect a configurator. Connect a config, and the labels appear.
  • Trigger comes out empty if the active config has no trigger word or nothing is selected. If your prompt suddenly loses a word, check active, not your text.
  • Old title labels. The dropdown labels are pulled live from connected configs' triggers, so if you rename a trigger, the dropdown follows - but only for configs actually connected.

The Selector is the node that makes the whole LoRA side of this pack feel like a product instead of a pile of wires. Wire the roster once, then spend your time on prompts and seeds instead of graph surgery.

Category⚡ CornmeisterNL/PowerPack/LoRA

Inputs (4)

NameTypeDefaultDescription
modelMODEL
clipCLIP
activeSTRING1
cfg_1optLORA_CFG

Outputs (3)

NameTypeDescription
modelMODEL
clipCLIP
triggerSTRING