Nodes/comfyui_bmad_nodes/FromListGet1Cond
ComfyUI Node Runs on cloud

FromListGet1Cond

Pull One Conditioning Out of a Stack

By bmad4ever·Created 3 years ago·Updated about a year ago· 64
FromListGet1Cond
  • list
  • CONDITIONING
index0

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 - use ToCondList to wrap it first.
  • Zero-based indexing. Variant 0 is the first; -1 is 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.

CategoryBmad/Lists/Get1

Inputs (2)

NameTypeDefaultDescription
listCONDITIONING
indexINT0

Outputs (1)

NameTypeDescription
CONDITIONINGCONDITIONING