ComfyUI-JDCN
Jerry Davos Custom Nodes for Saving Latents in Directory (BatchLatentSave) , Importing Latent from directory (BatchLatentLoadFromDir) , List to string, string to list, get any file list from directory which give filepath, filename, move any files from any directory to any other directory, VHS Video combine file mover, rebatch list of strings, batch image load from any dir, load image batch from any directory and other custom nodes.
Nodes (81)
Load a checkpoint from anywhere on disk, not just your models folder
Turn a folder into a list of file paths — without loading a single file
Slice a file list by keyword and extension
Random files from a folder, batch-sized, seed-controlled
Pick one file out of a list without re-typing a path
A lap counter for batch jobs that's really just multiplication
Skip, overlap, and laps in one node
Load a folder of images as a batch, skipping N frames
Page through an image path list in batches
Re-open your saved latents straight from a folder
Re-open your saved latents from a path list, a page at a time
VAE-encode once, reuse forever — dump your latents to disk
One toggle, two numbers — True/False and 1/0 from a single switch
A flag emitter that writes 'enable' or 'disable'
Sort your output folders by actually moving the files
Save images to any folder on disk, not just ComfyUI's output dir
Turn a list of strings into one block of text
A LoadImage that hands you the alpha as a mask (and loads GIFs as batches)
Chunk a long list of files into batches of N
Crossfade a folder of images into seamless tiles
Split a string at the Nth occurrence of a word, from the front or the back
Slice, shuffle, and rejoin prompts and tags
Multiline text to a real list, the two-second way
Flip any two wires without rewiring your graph
Write caption files for a list of images, with backup
Write text to a .txt file anywhere, with merge and overwrite modes
Grab the video VHS just rendered and park it where you want
Absolute value, for when a negative number is really a distance
Add two numbers mid-graph without a math node
Round a number up, and get an integer out the other side
Coerce any value into a true/false for wiring conditionals
Force any value into a float, no questions asked
Force any value into an integer, and know exactly what it'll do
Any input to text — the node that silences 'expected STRING'
Join a combo/list into one string with your own separator
A dropdown that dumps its value to the console — the world's simplest debugger
Divide two values and get a float — and yes, it refuses to divide by zero
The node that's supposed to crash your workflow
Round down to the nearest integer — the ceil's quiet sibling
True only when both inputs are true
Bitwise AND is how you check or clear flags — LogicUtil_Bitwise And explained
This is not 'invert the number' — LogicUtil_Bitwise Not does something weirder
Setting flags without collisions — LogicUtil_Bitwise Or, the OR you actually want
Fast multiply-by-two (and divide-by-two) — LogicUtil_Bitwise Shift
The 'toggle' gate — LogicUtil_Bitwise Xor, and why it's the odd one out
The 'is A bigger than B?' gate that gates your whole workflow — LogicUtil_ABiggerThanB
It's regex, not 'does the text contain this' — LogicUtil_AContainsB(String)
The ternary in node form — LogicUtil_ReturnAorBValue
The one-input NOT gate that ends your boolean tangle
Flip the sign on any number, mid-graph
A logic gate that doesn't do what its name says — read this first
The logarithm node with a base input you should actually set
Pick a float from a preset list, no typing in the field
Step through integer presets run after run
A cheap dropdown for anything ComfyUI won't give you one for
Cap a value from above without a formula node
Remember a value between runs — the flip-flop that saves your batch
The two-input string joiner that fixes prompt plumbing
Ceiling a value from above — the other half of a clamp
Scale any number, two inputs in one out
Pull the generation params out of any image, right in the graph
Exponent math with a guardrail that occasionally bites
Shuffle a list of floats — seeded, so you can repeat it
Randomize an int list with a seed you control
Seeded shuffle for your prompt lists
Regex replace — read the fine print before you wire it up
Snap a float to a whole number, and know it's banker's rounding
Save Image that tells you the filename it just wrote
Write any text to a .txt file mid-workflow
The 'wait a second' node that lets any value ride through
A pause that rides along your image wire
Nothing clever, and that's the point
A named constant for whole numbers, so you stop hunting sliders
A text constant you can reuse across the graph without retyping it
Turn a $-separated text blob into one picked item — useful, despite the name
See what your prompt actually is, before it hits the sampler
Pick a random option from a list — reproducibly, with a seed
A seeded random float between two bounds — for denoise jitter and strength wobble
A whole random number, on a seed, when you need to roll an index or a seed
A sequential counter that hands you the next number on every run
Cycle through your prompt variants, one per run, forever
ComfyUI-JDCN
ComfyUI-JDCN, Custom Utility Nodes for Artists, Designers and Animators.
Jerry Davos Custom Nodes for Saving Latents in Directory (BatchLatentSave) , Importing Latent from directory (BatchLatentLoadFromDir) , List to string, string to list, get any file list from directory which give filepath, filename, move any files from any directory to any other directory, VHS Video combine file mover, rebatch list of strings, batch image load from any dir, load image batch from any directory and other custom nodes.
Since Most of the nodes are working with path, so it’s Ram efficient as actually loading of files is not done initially.
1. JDCN_AnyFileList :
Load Paths of any files from inside ComfyUI from a folder
• folder_Path: Input the folder directory of the files you want to load without quotes. Eg: F:\Temp
• filter_by: Filter files by major category – Images, audios, videos, texts, tensors, folders
• extension: Filter files by their file extensions:
- Images: jpg, jpeg, png, gif, bmp, tiff, ico, svg, webp, psd, ai, eps, indd, cdr, raw, cr2, nef, orf, sr2, pef, x3f, dng, raf, rw2, arw, mef, mrw, fff, srf, kdc, mos, rwl, dcr, erf, 3fr, srw, bay, nrw, ptx, cap, iiq, eip, rwz, r3d, qtk, dcs, rw1, rpp, fff, rwl, pef, xmp
- Audio: mp3, wav, flac, aac, ogg, wma, m4a, ape, alac, aiff, mid, opus, amr, pcm, mp2, ac3, ra, au, mka, snd
- Video: mp4, avi, mkv, mov, wmv, flv, webm, mpg, mpeg, m4v, 3gp, rmvb, divx, vob, ts, ogv, m2ts, mts, f4v, asf
- Text: txt, doc, docx, xls, xlsx, ppt, pptx, pdf, rtf, html, htm, xml, json, csv, dat, ini, cfg, inf, log, md, sql, php, cpp, java, py, c, h, hpp, js, css, asp, aspx, jsp, jspx, xhtml, rss, atom, pl, cgi, nfo, diz, reg, key, sfv, cue, url, bat, sh, ps1, vbs, asm, bak, tmp, temp
- Tensors: latent
Example You can have all files in one folder and can filter & Separately use them:
Filter Photos and Use:
Use Single Video Via AnyFileSelector Node:
Filter and Use Multiple Videos at Once:
Filter Latents and Use:
Filter Text files, jsons and load them inside comfy:
2. JDCN_AnyFileListHelper
You can sort sperate List externally with a helper node.
• Search – Input keywords to search for – one or many keywords separated with comma
- EG: portrait,girl
• Filter_by and extension are same as AnyFileList Node
Example workflow:
A folder with 12 Items in mixed format – webp, gif, png, json, jpeg
One Main List is divided by different formats selected in Helper node or you can search for specific term as shown in purple node
Also, multiple keywords can be used to filter out files.
3. JDCN_AnyFileListRandom
AnyFileListRandom can be used to select elements at a random, fixed or incremental order.
• Batch_Size – Set the number of files selected per queue.
4. JDCN_AnyFileSelector
It is used to select 1 element from the given input list
5. JDCN_BatchImageLoadFromList
Load images in any supported format
6. JDCN_BatchSaveLatent
This Export latents into a folder, to save vae encoding time or use later.
7. JDCN_BatchLatentLoadFromDir
• Directory – Enter a folder location
• Load_Cap – Number of Latents to load
• Skip_Frame – Skip the first n images.
You can load latents directly from a Specific directory
8. JDCN_BatchLatentLoadFromList
• Index – Start index of the latents from the path list inputted.
• BatchSize – Number of Latents to load.
• BatchDirection – Direction for selection of latents from the list.
NOTE : Index works differently in this node, it is depended on BatchSize For Example: You have 4 elements in the inputted list. (a,b,c,d)
Scene 1: Index = 1 BatchSize = 2
Output = a, b
Scene 2: Index = 2 BatchSize = 2
Output = c, d
9. JDCN_FileMover
A folder containing files
Images, Json, Videos are sorted with helper node then moved to a new location via File Mover node.
Output Result after queue.
10. JDCN_ImageSaver
Saves images into an output directory • OpenOutputDirectory: When enabled will open the Output folder.
11. JDCN_ListToString and JDCN_ StringToList
Convert list to one single multiline text and vice versa where ever needed.
12. JDCN_ReBatch
• BatchSize – Number of Elements for a single output packet
• TextList – False will give list a comma separated form, True will give in new line.
13. JDCN_SplitString
It Split the input String or list of strings from a given search term and give outputs – Suffix, Prefix and Found at location
• SearchFor – Enter character or word to search for a String
• StartFrom – Begin Searching the string from front or rear.
• Occurrence – Split the String from nth Occurrence of the search term from front or rear.
• IncludeSearchFor – Include the SearchFro Term in the Outputs - Suffix
Example Use cases: Separate Extentsions
Separate File names and Paths
Go Folder Up:
14. JDCN_TXTFileSaver
It Saves string or Text content into a file
• Directory – Input a Folder location to Save the text file
• Mode – How to Handle same named file – Merge, OverWrite, SaveNew, MergeAndSaveNew
It will create a new file if same named file does not exists
15. JDCN_VHSFileMover
Use it with a VHS video combine node to move the rendered file to the output Location • OverwriteFile – It will overwrite the file if they have same file name.
Installation
-
Using
comfy-cli(https://github.com/yoland68/comfy-cli)comfy node registry-install comfyui-jdcn -
Automatic Method with Comfy Manager
- Inside ComfyUI > Click Manager Button on Side.
- Click
Install Custom Nodeand Search for JDCN and Install this node:
- Restart ComfyUI and it should be good to go
- Manual Method
- Go to your Comfyui > Custom Nodes folder
- Run CMD from folder path box or right click on empty area and click open in terminal.
- Copy and Paste this command
git clone https://github.com/daxcay/ComfyUI-JDCN.git - Then go inside ComfyUI-JDCN with cmd or open new.
- and type
pip install -r requirements.txtto install the requirements.
CREDITS
◉ Daxton Caylor - ComfyUI Node Developer
- Discord - daxtoncaylor
- Email - [email protected]
- Discord server: https://discord.gg/Z44Zjpurjp
- Commission Status: 🟢 Open 🟢
◉ Jerry Davos - Graphic Design and Nodes Ideas
-
Discord - jerrydavos
-
Email - [email protected]
-
Commission Status: 🟢 Open 🟢
-
Discord Server : https://discord.gg/z9rgJyfPWJ
Support for JDCN ❤️
If you like to suppport us you can help us by
Donation: https://paypal.me/jerrydavos