comfyui-ux-combinatorial
A dependency-free ComfyUI custom node that expands combinatorial prompt syntax.
ComfyUI UX Combinatorial
A dependency-free ComfyUI custom node that expands combinatorial prompt syntax.
CombinatorialPromptBatch accepts positive_prompt and batch_size and returns:
prompts: every ordered combination produced by{a|b}groups.effective_batch_size:1for a dynamic prompt, or the selected batch size for a regular prompt.combination_count: the number of generated combinations.
Nested groups, empty alternatives, and escaping of \{, \}, \|, and \\ are supported. Expansion is capped at 32 combinations.
Examples
| Prompt | Output |
| --- | --- |
| portrait | portrait |
| girl with {red|blue} dress | Two prompts |
| {red|blue} {dress|shirt|coat} | Six prompts |
| {red|{blue|green}} ball | Three prompts |
Installation
ComfyUI Manager
- Open Manager.
- Select Install via Git URL.
- Paste this repository URL.
- Restart ComfyUI.
Manual installation
Clone the repository into the ComfyUI custom-node directory:
cd ComfyUI/custom_nodes
git clone https://github.com/NevetCohen/comfyui-ux-combinatorial.git
Restart ComfyUI after cloning.
RunDiffusion
Install the repository through ComfyUI Manager → Install via Git URL, then use Restart App: ComfyUI in RD Server Manager and refresh the browser.
If arbitrary Git URL installation is disabled, launch FILES ONLY and edit:
/custom/CMFY/user/default/ComfyUI-Manager/config.ini
For current ComfyUI Manager versions, enable:
[default]
allow_git_url_install = true
Older Manager versions may additionally require security_level = weak.
Dependencies
No external Python packages are required.