Sign In

ComfyUI Wildcards Custom Node

67
754
18
Updated: Oct 5, 2024
assetscomfyuiwildcardnodes
Type
Wildcards
Stats
754
Reviews
Published
Jul 18, 2023
Base Model
Other
Hash
AutoV2
BA248716EE

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:

  1. add the wildcards.py to your ComfyUI/custom_nodes directory

  2. add a wildcards directory to your ComfyUI installation directory

  3. add txt files to your new directory for your wildcards

  4. reference these wildcards in your prompt with double underscores (ie: __name__)

  5. add the node to the ui and hook it up

  6. 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