FromListGet1Cond
Pull One Conditioning Out of a Stack
- list
- CONDITIONING
FromListGet1Cond returns a single CONDITIONING from a conditioning list by index. Conditioning lists are what you get when you encode several prompts at once, and this node is how you peel one off to feed a sampler, a ControlNet, or a conditioning-combine step.
Why you'd reach for it
This pack's CLIPEncodeMultiple encodes a list of strings into a list of conditionings in one go. That's efficient - but most consumers (KSampler, conditioning combine) want a single conditioning. FromListGet1Cond is the adapter: encode a batch of prompt variants, then select the one you want for a given pass. The dynamic index means you can sweep prompt variants across runs by driving index from a counter.
It's also useful when you've combined conditionings into a list somewhere and need one back out - negative indexes get you the last one without counting. In regional or multi-prompt workflows this beats cloning the whole encode chain per variant.
How it works
Standard family logic: index % len(list), zero-based, negative indexes count from the end. The list input is forced - it must be connected to a node outputting a CONDITIONING list, like CLIPEncodeMultiple (also in this pack). The index widget accepts a connection. Output is a single CONDITIONING that plugs straight into a sampler or a conditioning-combine node.
Install
Part of bmad4ever's pack:
cd ComfyUI/custom_nodes
git clone https://github.com/bmad4ever/comfyui_bmad_nodes
then restart ComfyUI. Manager users search "comfyui_bmad_nodes"; the pack's Python requirements install automatically and don't affect this node.
Common issues
- Single conditioning into
list. A standard CLIP Text Encode outputs a single conditioning, not a list - useToCondListto wrap it first. - Zero-based indexing. Variant 0 is the first;
-1is the last. - Wrapping. Out-of-range indexes wrap via modulo. Debugging "wrong prompt on run 4" is often just an index past the end wrapping back to the start.
If you encode prompts in bulk and consume them one at a time, this is the node that closes the loop.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| list | CONDITIONING | — | |
| index | INT | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| CONDITIONING | CONDITIONING | — |