Nodes/ComfyUI_AceNodes/πŸ… Text List
ComfyUI Node

πŸ… Text List

One multiline box in, a real list out

By hay86Β·Created 2 years agoΒ·Updated about a year agoΒ· 96
πŸ… Text List
    • STRING
    β—„list_textβ–Ί

    ComfyUI has a weird type gap: lots of things want a list of strings - prompts to iterate over, a batch of tags, a sequence of seeds-as-text - but there's no obvious built-in way to turn a pile of text into one. πŸ… Text List is the pack's fix. You paste a bunch of lines into a multiline box, and it hands back a real STRING list where every non-empty line is an element. It's a five-line function in the source, and it's the kind of node you'll quietly rely on once you know it's there.

    How it works

    The single list_text input is a multiline STRING. On execution the node splits it on newlines, strips whitespace from each line, and drops the empty ones. What you get out is a list: each line becomes one element. The key detail is that the output is flagged as a list (OUTPUT_IS_LIST), so downstream nodes see it as a collection rather than a single blob - which changes how you wire it.

    That's the trap, too. A list output only behaves as a list if whatever you connect it to is list-aware. Feed it into a node that expects a single STRING and ComfyUI will either complain about the type mismatch or, depending on the receiver, expand it into multiple executions. Pair it with something that genuinely consumes lists - batch prompt generators, list-handling utilities, or the pack's own list-oriented nodes - and it works exactly as intended.

    Inputs and outputs

    • list_text - STRING, multiline, default "". Each line = one list element.
    • Output: STRING (list).

    So this:

    a cyberpunk street
    a rainy alley
    a neon market
    

    becomes a list of three strings, ready to drive a prompt-batching workflow.

    Install

    It ships in hay86/ComfyUI_AceNodes:

    cd ComfyUI/custom_nodes
    git clone https://github.com/hay86/ComfyUI_AceNodes
    cd ComfyUI_AceNodes
    pip install -r requirements.txt
    

    Restart ComfyUI and find πŸ… Text List under Ace Nodes. Manager: search ComfyUI_AceNodes.

    Gotchas

    First, remember the list behavior cuts both ways - a list into a non-list node is the most common "why is nothing happening / why is this erroring" moment with this node. Second, the pack's usual install tax: the full requirements.txt (rembg, transformers, boto3, insightface…) installs even though this node touches nothing but string handling. Third, there's no deduplication and no sorting - lines come out in the order you wrote them, empties stripped. For turning a wall of text into structured input, that's all you need.

    CategoryAce Nodes

    Inputs (1)

    NameTypeDefaultDescription
    list_textSTRINGβ€”

    Outputs (1)

    NameTypeDescription
    STRINGSTRINGβ€”