Extensions/comfyui-ux-combinatorial
ComfyUI Extension

comfyui-ux-combinatorial

A dependency-free ComfyUI custom node that expands combinatorial prompt syntax.

By NevetCohen·Created about a month ago·Updated about a month ago· 0
NevetCohen/comfyui-ux-combinatorial
Nodes
On cloudLocal install
Stars0
Updatedabout a month ago
Readme

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: 1 for 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

  1. Open Manager.
  2. Select Install via Git URL.
  3. Paste this repository URL.
  4. 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.