Nodes/Comfyroll Studio/πŸ“œ CR Load Text List
ComfyUI Node Runs on cloud

πŸ“œ CR Load Text List

Read a .txt or .csv into a batch of prompts

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,291
πŸ“œ CR Load Text List
    • STRING
    • show_help
    β—„input_file_pathβ–Ί
    β—„file_nameβ–Ί
    β—„file_extensionβ–Ύβ–Ί

    CR Load Text List reads a text or CSV file off disk and hands each line back as a list item. That list is the point: in ComfyUI a list output makes everything downstream run once per entry, so a file of 50 prompts becomes a 50-image batch with no copy-pasting. It's how you keep your prompt sets in a real file you can edit, version, and reuse instead of trapped inside a node.

    This is the natural partner to CR Save Text To File - save a generated or curated list out, load it back in later. It's also the sane way to run a big prompt sweep: maintain your prompts in a .txt, one per line, and point this node at it.

    How it works

    You tell it three things: the folder (input_file_path), the file name (file_name), and the extension (txt or csv). It opens the file and emits its lines as a list. Because the output is flagged as a list, ComfyUI iterates the graph over it - each line drives one run. Note the split fields: the path and the name are separate inputs, so input_file_path is the directory and file_name is just the base name without the extension, which the dropdown supplies. Getting those three parts lined up correctly is most of the battle.

    The inputs and outputs that matter

    • input_file_path - the folder your file lives in. A directory, not the full file path.
    • file_name - the file's base name, no extension.
    • file_extension (txt / csv) - pick the one that matches your file.

    Outputs:

    • STRING - the lines as a list. Wire into a CLIP encode (or anywhere a per-item string goes) and it fans out into a batch.
    • show_help - wiki link, ignore.

    How to install it

    Comfyroll Studio (Suzie1 and RockOfFire), a mature utility pack - no models, no heavy dependencies.

    • ComfyUI Manager - search Comfyroll Studio, install, restart.
    • Manual - cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, then restart.

    Also on CivitAI.

    Common issues

    Ninety percent of the trouble here is the path. The folder, name, and extension are three separate fields, and if any is off - a trailing slash, the extension baked into the name, a relative path the ComfyUI process can't resolve - the node can't find the file. Use an absolute path you've verified, keep the extension out of file_name, and match file_extension to the real file. On a hosted or serverless ComfyUI, remember the path is relative to wherever the server runs, not your local machine, so an arbitrary desktop path won't resolve - you'd need the file where the server can actually see it.

    Also mind the batch size: every line is one run, so a big file is a big job - check the line count before you queue.

    If the node itself is missing, that's the pack-wide load failure - Comfyroll Studio: Failed to load ... and NameError: name 'CR_HalftoneGrid' is not defined in the log. The NameError is a symptom of a real import error (usually an incompatible Pillow version from another node) that can down the whole pack. Reinstall Pillow (pip install --upgrade --force-reinstall pillow) and restart.

    Category🧩 Comfyroll Studio/✨ Essential/πŸ“œ List

    Inputs (3)

    NameTypeDefaultDescription
    input_file_pathSTRINGβ€”
    file_nameSTRINGβ€”
    file_extensionCOMBO2 options: txt, csv

    Outputs (2)

    NameTypeDescription
    STRINGSTRINGβ€”
    show_helpSTRINGβ€”