LoraListNames
A dropdown of every LoRA you own, as a string output
- lora_name
Every loader in the ComfyUI-Lora-Auto-Trigger-Words pack has an override_lora_name input, and LoraListNames is the intended feed for it. It's a plain dropdown of every LoRA in your models/loras folder, and it outputs the one you picked as a STRING. That's the whole job - but it's the piece that lets you move LoRA selection out of a loader's buried widget and into an explicit node in the graph.
Here's why that matters. Loaders with built-in dropdowns work fine until you want to drive the selection from somewhere else: a batch, a switch, a Randomizer, or just a spot on the canvas that's easier to click. The loaders' override_lora_name accepts a string, so anything that produces a filename can take over. LoraListNames is the clean way to produce that filename - it's a dedicated picker with a STRING output, so you can wire the same choice into a loader and into a LoraTagsOnly node, or into a TagsSelector's context, without digging through widget state.
It's also just a nice sanity check node. If you ever need to confirm exactly what filename ComfyUI is using for a LoRA - the dropdown list reflects folder_paths.get_filename_list("loras"), which is your actual loras directory - this outputs the precise name as data instead of relying on what the widget displays.
How it works
One required input, lora_name, which is a dropdown populated from your models/loras folder at load time (sorted case-insensitively). One output, also named lora_name, of type STRING, containing exactly the selected filename. The class's entire function is:
def output_selected(self, lora_name):
return (lora_name,)
So no transformation, no tag lookup, no model load. If you re-add LoRA files while ComfyUI is running you'll need to refresh - the list is built when the node instantiates.
The typical wiring: LoraListNames.lora_name → a loader's override_lora_name (e.g. LoraLoaderVanilla, LoraLoaderStackedAdvanced, or LoraTagsOnly). When override_lora_name is non-empty, the loader ignores its own dropdown and uses your string instead - that's the whole dynamic-selection trick this pack enables.
Installing
Part of ComfyUI-Lora-Auto-Trigger-Words. Install via ComfyUI Manager (search "ComfyUI-Lora-Auto-Trigger-Words") and restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/idrirap/ComfyUI-Lora-Auto-Trigger-Words
No dependencies, no model downloads. One caveat worth knowing: this node only names LoRAs. If you want the tags for whatever it selects, chain its output into a LoraTagsOnly node rather than assuming the name carries any metadata with it.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| lora_name | COMBO | 0 options: |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| lora_name | STRING | — |