Wildcard node for ComfyUI
This is a custom node for ComfyUI to add in wildcard functionality from files. I really liked this one for A1111, so I wrote a node for ComfyUI. This node creates a Seed, and can be wired to the KSampler to reuse the same seed. This is beneficial if you want to replicate the same image, without replacing the wildcard with actual text.
Usage:
add the
wildcards.py
to yourComfyUI/custom_nodes
directoryadd a
wildcards
directory to your ComfyUI installation directoryadd
txt
files to your new directory for your wildcardsreference these wildcards in your prompt with double underscores (ie:
__name__
)add the node to the ui and hook it up
enjoy!
Known Issues:
if you use a batch greater than 1, it will use the same wildcard prompt for the whole batch. i'm not sure if there is a way yet to modify the clip to handle multiple values with multiple latents
currently only looks for files with letters (upper and lower case), numbers, and hyphens
github source: https://github.com/lordgasmic/ComfyUI-Wildcards