Nodes/ComfyUI-nhknodes/πŸ“‚ Load Text Files (nhk)
ComfyUI Node

πŸ“‚ Load Text Files (nhk)

Load text files with auto-incrementing index and folder scanning

By EnashkaΒ·Created 11 months agoΒ·Updated about a month agoΒ· 22
πŸ“‚ Load Text Files (nhk)
    • text_content
    • loaded_filepath
    • available_count
    • current_filename
    • repeat_status
    β—„folder_pathβ–Ί
    β—„base_filenamesaved_textβ–Ί
    β—„file_extensiontxtβ–Ί
    β—„counter_format_{counter:03d}β–Ί
    β—„auto_incrementtrueβ–Ί
    β—„set_to0β–Ί
    β—„repeat_count1β–Ί
    β—„wrap_aroundtrueβ–Ί
    Categorynhk/text

    Inputs (8)

    NameTypeDefaultDescription
    folder_pathSTRINGTarget directory to scan for text files
    base_filenameSTRINGsaved_textBase name pattern to match against files
    file_extensionCOMBOtxt2 options: txt, md
    counter_formatSTRING_{counter:03d}Format string for numeric counter pattern
    auto_incrementBOOLEANtrueAutomatically advance to next file on each execution
    set_tooptINT00–9999Set to specific index (0 = continue from last, >0 = jump to that index)
    repeat_countoptINT11–100Load same file this many times before advancing to next
    wrap_aroundoptBOOLEANtrueReturn to first file after reaching the last one

    Outputs (5)

    NameTypeDescription
    text_contentSTRINGβ€”
    loaded_filepathSTRINGβ€”
    available_countINTβ€”
    current_filenameSTRINGβ€”
    repeat_statusSTRINGβ€”