Nodes/Ray's Orenchi/πŸ”§ Ray's Tools: TXT Folder
ComfyUI Node

πŸ”§ Ray's Tools: TXT Folder

Read .txt files alphabetically from a local folder. Emit one complete prompt and matching save prefix per non-empty file. Connect both list outputs to the same generation/save chain. Re-read files on every run.

By MutantSparrowΒ·Created 4 months agoΒ·Updated 3 days agoΒ· 1
πŸ”§ Ray's Tools: TXT Folder
    • prompt
    • filename_prefix
    β—„directoryβ–Ί
    β—„start_index0β–Ί
    β—„limit-1β–Ί
    β—„output_prefixRayKrea2_FromTXTβ–Ί
    CategoryπŸ‘‘ Ray/πŸ”§ Tools

    Inputs (4)

    NameTypeDefaultDescription
    directorySTRINGEnter the absolute path to a folder of .txt prompts.
    start_indexINT0Skip this many files in alphabetical filename order, counting empty files.
    limitINT-1Read at most this many files after start_index; use -1 for all remaining files. Empty files count toward this limit.
    output_prefixSTRINGRayKrea2_FromTXTSet the Save Image subfolder or prefix; append each source filename without its .txt extension.

    Outputs (2)

    NameTypeDescription
    promptSTRINGComplete text from each non-empty file, in alphabetical filename order.
    filename_prefixSTRINGMatching save prefix for each prompt, using the source filename stem.