Nodes/comfy-easy-grids/String List from Text Field
ComfyUI Node

String List from Text Field

A real text box beats six tiny ones

By shockz0rz·Created 3 years ago·Updated 2 years ago· 28
String List from Text Field
    • current value
    • list
    index1
    string_list

    If you've typed six prompts into the widget-based String List and immediately wished for a bigger box, this is that wish granted. String List from Text Field takes one multiline text area, splits it into a list on newlines, and lets an index pick which entry is active - up to 100 of them. It's the text version of the pack's "from Text Field" pattern, and it fixes the two things that make the widget version annoying: the six-entry cap and the tiny inputs.

    How it works

    Each line of the string_list text box becomes one entry in the list. Set index (1-based, max 100) and out come:

    • current value - the selected line (STRING)
    • list - every line as a STRING_LIST

    One deliberate difference from the numeric list nodes: strings only split on newlines. The README calls this out explicitly - the numeric versions accept commas, semicolons, colons, and whitespace as separators, but this one treats every other delimiter as part of the string. That's the right call for text, where a comma inside a prompt fragment is data, not a separator. If your entries have commas in them, newline splitting is exactly what you want.

    How you'd actually use it

    Two jobs. First, sweep prompt fragments through a grid: one line per variant, current value into a Text Concatenator, and each cell of a Create Image Grid loop gets a different line of the list. With 100 lines you can run a genuinely long style sweep without touching the graph.

    Second - and this is the sleeper use - feed the list output straight into Save Image Grid's row_labels or column_labels. Both are STRING_LIST inputs, and this node produces exactly that. Combined with the pack's text-to-number nodes, you can label a comparison grid with the actual parameter values that produced each cell, which turns an unreadable 6×6 wall of images into something you can actually learn from.

    Installing it

    Part of comfy-easy-grids, installed once for the whole pack. ComfyUI Manager: search "comfy-easy-grids". Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/shockz0rz/comfy-easy-grids
    

    Restart ComfyUI. No extra dependencies, no model files. Under "EasyGrids" in the Add Node menu.

    Troubleshooting

    The main gotcha is the newline rule from above - if you paste a comma-separated list expecting it to split, it won't; each line stays one entry. A trailing newline at the end of the box creates a trailing empty entry, which is harmless unless index lands on it (you'll get an empty string out). And the index clamp is the same as everywhere else in this pack: an index past the end silently returns the last line.

    CategoryEasyGrids

    Inputs (2)

    NameTypeDefaultDescription
    indexINT11–100
    string_listSTRING

    Outputs (2)

    NameTypeDescription
    current valueSTRING
    listSTRING_LIST