π΄ LoRA Selector
A Dropdown for Every LoRA You Own, Wired Into the Graph
- run_after
- LoRA
If you own more than five LoRAs, you know the pain: the LoRA Loader's dropdown is a wall of filenames, and making the choice part of your workflow means string nodes, manual typing, and broken workflows. LoraSelector (π΄ LoRA Selector, from ControlFlowUtils) is a dropdown that lists every LoRA ComfyUI can see and hands the selected name to your graph as data.
It's a small node with an honest limitation: the description notes the "forward directly into a loader" integration is currently unimplemented. What you actually get is the LoRA filename as a string on a wire. And that's enough, because ComfyUI lets you convert any string widget to an input - so you can drive a LoRA Loader's name field from this node and swap LoRAs by changing one dropdown.
The inputs and output
- lora_name - the dropdown, populated from
folder_paths.get_filename_list("loras"), i.e. every file in yourmodels/lorasfolder (sorted, case-insensitive). Drop a new LoRA in and it appears after a refresh. - run_after (optional) - a dummy input for ordering only: connect any node here to make the selector execute after it.
The single output, LoRA, is the selected filename as a string. To use it, convert the LoRA Loader's lora_name widget to an input and wire this output in.
Where it earns its keep
The real value is dynamic selection. Two patterns stand out:
- Branching. Pair it with an IfConditionSelector or Universal Switch: different conditions route different LoRA names to the same loader. One workflow, several LoRA "modes," no copying node blocks.
- Experimenting. If you're A/B testing styles, a single dropdown listing everything beats retyping filenames. It also composes with loops - iterate over LoRA names in a list and batch-generate style comparisons.
Honest framing: for a static "always use this LoRA" workflow, stock ComfyUI needs no help. This node is for when the LoRA choice should depend on something. And among this pack's Selector trio (Model, LoRA, VAE), the LoRA Selector is the one with the most real-world demand - LoRA swapping is the most common "choose at runtime" decision people actually make.
A caveat about scope: it selects a name; it doesn't load weights or apply strength. You still need a real LoRA Loader downstream. Also, no trigger-word support here - if you want right-click trigger words and per-LoRA info, that's rgthree's Power Lora Loader, a different tool for a different job. This node is the lightweight "choose one" primitive for dynamic graphs.
Install
LoraSelector ships in VykosX/ControlFlowUtils:
# ComfyUI Manager β Install Custom Nodes β search "ControlFlowUtils"
# or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/VykosX/ControlFlowUtils
Restart, find it under πΊ VykosX-ControlFlowUtils. No model downloads - it only lists what's already in your LoRA folder. If a LoRA you own is missing from the dropdown, it's not in ComfyUI/models/loras, or ComfyUI hasn't refreshed.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| lora_name | COMBO | 0 options: | |
| run_afteropt | * | Optional input used only to ensure this node will run after any node you connect to this Input |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LoRA | * | LoRA name or list of LoRAs |