chrisgoringe / Comfy-Custom-Node-How-To

An unofficial practical guide to getting started developing custom nodes for ComfyUI
GNU General Public License v3.0
143 stars 5 forks source link

"Choser" Node #15

Closed JoeGay777 closed 6 months ago

JoeGay777 commented 6 months ago

I'd like to write a node that has a push button on it where you can pick a file or directory and then have the value be a string to pass around the flow. Similar to the image loader but with the name being an output variable. Any pointers on where to start with something like this? Thanks.

chrisgoringe commented 6 months ago

I'd suggest starting by copying the image loader node (in nodes.py) and seeing if you can just make some changes to it. Simply adding an extra output might be really simple.

JoeGay777 commented 6 months ago

Thanks for the fast response. I'll start there.