ComfyUI Node
kubakub region plan
Give every region its own prompt and settings, written as simple text rules. Sections: [default], [W_F1_*] (name wildcard), [group:Windows], [tag:M_FLOOR_F1], [region:3-7]; space = AND, comma = OR, ! = NOT. More specific rules win (region > name > group > tag > default). prompt += text appends, {a|b|c} picks one per region.
kubakub region plan
- regions
- image
- plan
- plan_json
- report
- preview
◄rules[plan]
order = largest_first
[default]
prompt = weathered sandstone facade at night
denoise = 0.55
[group:Windows]
prompt = dark glass, faint reflections
[W_F1_*]
strategy = frame_in_frame
prompt = an underwater room with {jellyfish|a sunken piano|koi}
►
◄seed0►
◄rules_file►
Categorykubakub/2d/generate
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| regions | KUBA_REGIONS | From kubakub regions from matrix / masks (regions output). | |
| rules | STRING | [plan] order = largest_first [default] prompt = weathered sandstone facade at night denoise = 0.55 [group:Windows] prompt = dark glass, faint reflections [W_F1_*] strategy = frame_in_frame prompt = an underwater room with {jellyfish|a sunken piano|koi} | The plan. See docs/generate.md (region plan) for all settings. Applied after rules_file, so it can override it. |
| seed | INT | 00–18446744073709550000 | Plan seed: region seeds (seed + region id) and {a|b} choices. |
| rules_fileopt | STRING | Optional .txt with rules, e.g. kept in the project folder. Read only. | |
| imageopt | IMAGE | Background for the preview (the matrix). Another size than the regions is scaled to fit, for the preview only. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| plan | KUBA_PLAN | Connect to kubakub region sampler and seam pass. |
| plan_json | STRING | The resolved settings of every region as text. |
| report | STRING | A table of every region with its strategy, denoise and prompt, plus notes. |
| preview | IMAGE | Same colour = same strategy and prompt. |