Nodes/Doom_Flux_NodePack/Doom Multi Prompt Loader
ComfyUI Node

Doom Multi Prompt Loader

Doom Multi Prompt Loader

By PeterMikhai·Created about a year ago·Updated 6 days ago· 1
Doom Multi Prompt Loader
    • prompt
    • filename
    • filepath
    • new_index
    • status
    input_modefolder
    base_path
    file_list
    sort_byname
    separatordouble_newline
    select_modesequential
    current_index0
    reset_indexfalse

    Testing twenty prompts one at a time by hand is how you spend an afternoon re-typing text. Doom Multi Prompt Loader is the node that lets you queue them all up and let the graph chew through them: it pulls prompts from a folder, from a comma-separated file list, or from one big file, and hands them to your sampler in sequence, at random, or shuffled until you've seen all of them.

    It's the kind of node you reach for the moment your prompt work stops being "one idea" and starts being "a list of ideas" - model testing, style comparison, wildcard farming, or just generating a batch where every image is allowed to be different.

    How it works

    Three input modes cover the realistic cases:

    • folder - every text file in a directory becomes a source.
    • files - a comma-separated list of specific paths.
    • single_file - one file containing multiple prompts, split on the separator (default is double_newline, i.e. a blank line between prompts).

    Then select_mode decides the order: sequential advances by index, random picks at random (repeatable if you keep the seed stable), shuffle walks a shuffled deck so nothing repeats until you've seen everything.

    The one bit of wiring you have to do is the loopback. The node outputs a new_index alongside the chosen prompt, and in sequential mode you feed that back into the current_index input. That's what makes it advance run after run instead of sitting on prompt zero forever. There's a reset_index toggle to zero it (and to reshuffle) when you're ready to start over, and a status output that summarizes mode, position, and total - handy for a DoomTextShow so you can see where the batch is.

    The inputs that matter

    • input_mode - folder / files / single_file. Decide this first; it changes which other fields mean anything.
    • base_path - the folder, or the single file path (used by folder and single_file).
    • file_list - used by files mode only.
    • select_mode - sequential / random / shuffle.
    • current_index - where the next prompt comes from. Wire new_index back here.
    • sort_by - file sort order when reading a folder.

    Outputs are prompt, filename (the source file's name), filepath (full path), new_index, and status. The prompt goes straight into your text encoder or sampler; filename can be fed to DoomSaveUltimate's prompt_filename if you want each image saved under its source prompt's name.

    Setup and the catches

    Standard pack install:

    cd ComfyUI/custom_nodes
    git clone https://github.com/PeterMikhai/Doom_Flux_NodePack
    

    Restart ComfyUI (or search "DoomAI Nodes" in Manager). No extra dependencies.

    Three things trip people up:

    • Forgetting the loopback. Without wiring new_index into current_index, sequential mode is just "prompt 0 forever." This is the single most common mistake with this node.
    • Shuffle state survives restart. The shuffled order is persisted, so a restart doesn't re-randomize - which is good for resuming a batch, but confusing if you expected a fresh deck. Use reset_index to force one.
    • Paths are real filesystem paths. The node doesn't browse your system for you; a typo in base_path just silently yields no prompts. Double-check the path exists before blaming the node.

    It's from a small, single-maintainer pack, so treat the state file that survives restarts as a feature you should understand rather than fight. Once the loopback is in, this node turns "test every prompt in my notes" into a queue you can walk away from.

    CategoryDoom/Prompt

    Inputs (8)

    NameTypeDefaultDescription
    input_modeCOMBOfolderfolder — все файлы папки; files — список через запятую; single_file — один файл
    base_pathSTRINGПапка или одиночный файл
    file_listSTRINGСписок путей через запятую (mode=files)
    sort_byCOMBOname2 options: name, date
    separatorCOMBOdouble_newlineРазделитель промптов внутри файла
    select_modeCOMBOsequentialsequential — по индексу; random — случайно; shuffle — без повторов
    current_indexINT0Текущий индекс (прокидывай выход new_index сюда)
    reset_indexCOMBOfalsetrue — сбросить индекс/порядок shuffle

    Outputs (5)

    NameTypeDescription
    promptSTRINGВыбранный промпт
    filenameSTRINGИмя файла-источника
    filepathSTRINGПолный путь файла-источника
    new_indexINTНовый индекс (прокидывай в current_index)
    statusSTRINGСводка: режим, позиция, всего