ComfyUI-JDCN icon indicating copy to clipboard operation
ComfyUI-JDCN copied to clipboard

help

Open K-O-N-B opened this issue 1 year ago • 5 comments

image

how can I select *.jpg and *.png both in extension?

I've tried this but now working image

Because my workflow can't use psd. Everything read PSD in my workflow will pop-up a error message window, and stop my following queue.

K-O-N-B avatar Oct 10 '24 19:10 K-O-N-B

workflow (7)

You can use the JDCN_AnyFileListHelper node to filter out the extentions image

Just put extentions separated by COMMA ( , ) in the search box

jerrydavos avatar Oct 13 '24 17:10 jerrydavos

workflow (7)

You can use the JDCN_AnyFileListHelper node to filter out the extentions image

Just put extentions separated by COMMA ( , ) in the search box

What if I need to random pick one image from X floder? Only the jpg and png files.

K-O-N-B avatar Oct 14 '24 02:10 K-O-N-B

image

Add two more nodes to have a random file path

JDCN_ListToString -- JDCN_StringManipulator

with these following settings for the StringManipulator Node: image

So the Following Full graph will act like your custom filter of JPEG and png files

Put the folder X in the First AnyFileList node, after process it will pick one image randomly by the stringmanilpulator in the end

workflow (8)

Here's your Json File too.

Random_JPEG_PNG.json

jerrydavos avatar Oct 14 '24 06:10 jerrydavos

THANK YOU, I try it later.

K-O-N-B avatar Oct 14 '24 07:10 K-O-N-B

image

Add two more nodes to have a random file path

JDCN_ListToString -- JDCN_StringManipulator

with these following settings for the StringManipulator Node: image

So the Following Full graph will act like your custom filter of JPEG and png files

Put the folder X in the First AnyFileList node, after process it will pick one image randomly by the stringmanilpulator in the end

workflow (8)

Here's your Json File too.

Random_JPEG_PNG.json

I've copy the workflow in my workflow like this: image

the main problem is I need to pick 3 different images one time, but the index number seems same in every queue, so the workflow alway pick one same image. How can I meke it? Thank u~

K-O-N-B avatar Oct 15 '24 09:10 K-O-N-B