Nodes/comfy-ovum/String List Editor Ovum
ComfyUI Node

String List Editor Ovum

Type a list that stays a list object

By sfinktah·Created about a year ago·Updated 10 months ago· 7
String List Editor Ovum
    • *
    items_text

    String List Editor Ovum turns a multiline text box into a Python list object: type one string per line, and out flows a list - a single value on the wire, ready for other Python-list utilities to slice, join, index, or iterate. It's the maintained Python-list variant of the pack's string-editor family.

    Which editor should you actually use?

    The comfy-ovum pack ships three string-list editors, and the only real question is which dialect your downstream node speaks:

    • StringBatchEditorOvum (ovum/lists/comfy) - output declared as a graph batch; the engine can fan it out to list-aware consumers.
    • StringListEditorOvum (ovum/lists/python, this one) - output is a real Python list object as a single value, for list-utility consumers.
    • StringListEditor (ovum/lists/any) - the original, marked deprecated in the source, superseded by the two above.

    If you're feeding the pack's own list utilities - slices, splices, joins, index lookups, loops - this Python-list variant is the natural fit. If you're feeding a node that wants a batch it can iterate element-by-element, use the Batch variant.

    How it works

    Backend is the same split-and-trim logic as its siblings: split the multiline string on newlines, strip whitespace per line, drop blank lines, return the remaining strings as a list. The difference is purely the type declaration - no OUTPUT_IS_LIST flag, so the list stays a single opaque value rather than a graph batch.

    Inputs and outputs

    • items_text (required, STRING, multiline) - one item per line, blank lines ignored, whitespace trimmed.
    • * (output) - the Python list of strings.

    Installing it

    Part of the comfy-ovum pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/sfinktah/comfy-ovum
    

    Restart ComfyUI, or install via ComfyUI Manager → search "comfy-ovum". Light dependencies, no models.

    Common gotchas

    • The drag-and-drop UI lives elsewhere. The older StringListEditor documented file dropping and an Add button; the maintained variants are backend-simple. If the UI widget you're used to isn't showing up, check which variant you actually added.
    • Same cleaning rules as the family. Leading/trailing spaces are trimmed and empty lines are dropped. Preserving exact whitespace? Wrong node.
    • It's a single list value, not a batch. Feed it to something expecting to iterate individual inputs and you'll get the list-as-one-object behavior - pick the Batch variant for fan-out.
    Categoryovum/lists/python

    Inputs (1)

    NameTypeDefaultDescription
    items_textSTRING

    Outputs (1)

    NameTypeDescription
    **