Gemini generated code.
Add toggle to allow extended network tags to pass through the dynamic prompt process.
Works with:
<lora ...> tags for badjeff/comfyui_lora_tag_loader
<ratio ... > tags for https://github.com/vcrparts/ComfyUI-DynamicRatioLatent
VIBECODED WARNING!!! I will not be maintaining or updating this, just for personal use.
Updated the following:
sampler.py -Random prompts node now wont refresh every time respecting fixed seed, saving time.
refresh.py - Wildcards location follows extra_model_paths.yaml, no more mklink or moving your wildcards all over the place.
Maintained fork of adieyal/comfyui-dynamicprompts, focused on fast startup, current ComfyUI compatibility, and practical wildcard workflows.
Magic Promptwas removed. It depended on Transformers and a local Hugging Face model, but is not needed by this Lite fork.- The remaining nodes no longer import Magic Prompt dependencies during ComfyUI startup.
Random Promptshas a刷新 Wildcardsbutton. Save wildcard-file changes, click the button, then run your workflow without restarting ComfyUI.- Repeated refresh clicks without changed
.txt,.json, or.yamlwildcard files retain the current cache.
Random Prompts- random variants and wildcard sampling.Combinatorial Prompts- cycles through combinations of variants and wildcards.I'm Feeling Lucky- obtains a related prompt through Lexica when used.Jinja2 Templates- prompt templates using Jinja2.OutputString- displays a string in the ComfyUI output panel.
Clone this fork into ComfyUI's custom_nodes directory:
git clone https://github.com/ZiYao00/ComfyUI-DynamicPrompts-Lite.git custom_nodes/ComfyUI-DynamicPrompts-Lite
python -m pip install -r custom_nodes/ComfyUI-DynamicPrompts-Lite/requirements.txtRestart ComfyUI once after installation. No separate install.py step is needed.
The plugin uses its own wildcards directory. It supports .txt, .json, and .yaml wildcard files. A Windows directory Junction is supported, which is useful when one wildcard library is shared by multiple ComfyUI installations:
mklink /J "custom_nodes\ComfyUI-DynamicPrompts-Lite\wildcards" "G:\CommonFile\wildcards\wildcards"After editing and saving any supported wildcard file:
- Click
刷新 Wildcardson aRandom Promptsnode. - Run the workflow normally.
The button checks file names, modification times, and sizes. It only invalidates Lite's cached wildcard data when a change is detected. It does not refresh other custom nodes' wildcard caches.
- Existing workflows containing
DPMagicPromptwill show a missing node because Magic Prompt was intentionally removed. - This fork keeps the other original node identifiers for workflow compatibility.
- The shared wildcard directory itself is ignored by Git and is never included in this repository.
This fork retains the original project's MIT License and attribution. Dynamic prompt syntax and wildcard behavior are provided by the dynamicprompts Python library.
See the changelog for release notes.