Lora Name Collector
Gather every LoRA name you used into one list for your metadata
- LORA_NAMES
Lora Name Collector answers the annoying "which LoRAs were in this render?" question in one node. You feed it up to five LoRA name strings - typically the metadata output from the pack's own Lora Selector nodes - and it hands you back a single list of every name, ready for a metadata saver that wants the whole stack in one place.
Why bother? If you've ever uploaded to Civitai from ComfyUI, you know the drill: the standard save node bakes in the positive and negative prompt but often leaves your LoRA stack as a mystery. You either reconstruct it from memory or dig through the PNG metadata in a text editor. Collector turns that into "wire five strings in, done."
How it works
Five optional inputs - Lora_A through Lora_E - each a plain STRING. The node sticks them all into a Python list, silently dropping anything empty or unconnected. Two implementation details make it more useful than a dumb concatenator:
- It flattens lists. If any input is already a list (say, from another PWLoraNameCollector), its items get extended into the output rather than nested. That's what makes chaining possible.
- Chaining past five. The README notes the original "up to 5" limit is gone - since each collector can swallow another collector's output, you can daisy-chain three of them for fifteen LoRAs if your workflow is that unhinged.
The single output is LORA_NAMES, typed as * (any type), holding a list of strings.
The one thing that trips people up
This node outputs a list, not a string. Plug it into a plain text formatter and you'll get something like ['lora1.safetensors', 'lora2.safetensors'] - the Python repr, brackets and quotes included - which is useless and looks like a bug. It's meant for savers and nodes that accept a list of LoRA names, the way comfy-image-saver's metadata fields do. If you need a comma-joined single string instead, route each name through FormattingSingle or FormatConcatStrings and join them yourself.
Installing it
Same pack as everything else here - this is one of the nine nodes in ComfyUI-StringsAndThings. Via ComfyUI Manager, search "ComfyUI-StringsAndThings" and install, then restart. Manual route:
cd ComfyUI/custom_nodes
git clone https://github.com/PressWagon/ComfyUI-StringsAndThings
No model downloads. The pack does pin scipy in its requirements (the Fourier node needs it) and exact versions of torch/numpy, but against a normal ComfyUI install those are already satisfied.
Caveats
- Nothing is batch-aware in this pack, and Collector is no exception.
- The 5-slot cap is per node; beyond that you're chaining, which works but gets visually busy fast. A stack of 10+ LoRAs is a rare enough workflow that this is a nit, not a problem.
- There's no ordering guarantee you don't control: the output preserves input order (A through E), which is exactly what you want for metadata that reads top-to-bottom.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| Lora_Aopt | STRING | — | |
| Lora_Bopt | STRING | — | |
| Lora_Copt | STRING | — | |
| Lora_Dopt | STRING | — | |
| Lora_Eopt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LORA_NAMES | * | — |