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.
π§ Ray's Tools: TXT Folder
- prompt
- filename_prefix
βdirectoryβΊ
βstart_index0βΊ
βlimit-1βΊ
βoutput_prefixRayKrea2_FromTXTβΊ
Categoryπ Ray/π§ Tools
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | Enter the absolute path to a folder of .txt prompts. | |
| start_index | INT | 0 | Skip this many files in alphabetical filename order, counting empty files. |
| limit | INT | -1 | Read at most this many files after start_index; use -1 for all remaining files. Empty files count toward this limit. |
| output_prefix | STRING | RayKrea2_FromTXT | Set the Save Image subfolder or prefix; append each source filename without its .txt extension. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| prompt | STRING | Complete text from each non-empty file, in alphabetical filename order. |
| filename_prefix | STRING | Matching save prefix for each prompt, using the source filename stem. |