Nodes/ComfyUI-EZ-AF-Nodes/EZ Prompt Loader
ComfyUI Node

EZ Prompt Loader

Loads prompt texts from files based on UI selection. Searches recursively through all subdirectories within the selected folder.

By ez-af·Created 2 years ago·Updated 3 months ago· 28
EZ Prompt Loader
    • STRING
    • OPT_DIRECTORY
    • BATCH_SELECTED
    prompt_directory
    selection_modesingle
    opt_seed0
    filter_text
    selected_files
    CategoryEZ NODES

    Inputs (5)

    NameTypeDefaultDescription
    prompt_directoryCOMBODirectory to search for prompt files. Searches recursively through all subdirectories.
    selection_modeCOMBOsingle- single: Allows selection of one item at a time. - multiple: Allows selection of multiple items. Output will be comma-separated. - random: Allows selection of multiple items. Randomly outputs one of the selected items on each prompt queue. Will select from all visible (filtered) items if none or single item is selected. Uses seed if opt_seed is connected. Always re-executes node if opt_seed is not connected
    opt_seedoptINT00–18446744073709550000Control SEED, used only in 'random' selection mode. If not connected, always re-executes node on prompt
    filter_textoptSTRINGFilter items based on a text string
    selected_filesoptSTRING

    Outputs (3)

    NameTypeDescription
    STRINGSTRINGContent of selected prompt file(s). Delimited by comma if multiple
    OPT_DIRECTORYSTRINGPath to currently selected directory.
    BATCH_SELECTEDSTRINGList of all selected items. Will output all visible (filtered) items if none or single item is selected.