Extensions/MOSS BBOX Prompter
ComfyUI Extension

MOSS BBOX Prompter

Manual five-color BBOX layout and Character/Object/Text prompt export for MOSS-Image. Reuses the Krea2 BBOX Prompter UI and supports traditional ComfyUI. Requires Krea2 BBOX Prompter Suite to be installed. MIT licensed.

By ukr8b3g-cmyk·Created about a month ago·Updated about 12 hours ago· 10
ukr8b3g-cmyk/MossImage-BBOX-Prompter
Nodes9
On cloudLocal install
Categoryconditioning/MOSS, image/MOSS
Stars10
Updatedabout 12 hours ago
Readme

MOSS BBOX Prompter

English | 日本語 · v2.1.0 · Release <img width="1789" height="741" alt="{EBFA18EE-0E04-416C-A085-46EEBC310FFD}" src="https://github.com/user-attachments/assets/a9736fd8-202e-40e0-b12a-c83cd5ba8fd1" />

Arrange colored boxes in ComfyUI and write a prompt for each character, object or text area. Canvas defines placement and Prompter supplies words; connect both to the same Export to build the MOSS-Image prompt.

Seven colors, multiple boxes of the same color, Angle/Framing/Focus, dialogue styles, reference images and Undo/Redo are included. V2 adds reference-image analysis → automatic box text → editing after OFF, while retaining V1 workflows and saved settings.

v2.1.0 adds per-box LoRA settings and lets you review image analysis before Run.

Install and open a workflow

  1. In ComfyUI-Manager → Install via Git URL, enter this repository.
  2. Save your work, finish running jobs, restart ComfyUI normally, then press Ctrl+F5. Use a ComfyUI version with MOSS-Image support.
  3. Load a workflow below and select your installed model, TE, VAE and LoRA files. The V2 template needs rgthree-comfy and Core Generate Text / If/Else Switch / Seed nodes. No separate Krea2 installation is required.

| Workflow | Download | Use | | --- | --- | --- | | V2 · 2.1.0 | ZIP with reference image / JSON | Current template. Analysis starts OFF; ordinary prompting works as before. | | V1 · 1.0.11 | Previous release / Template JSON | Previous setup. Older release history is retained. |

Extract the V2 ZIP and open examples/MOSS_BBOX_Canvas_V2.json. Upload/select the included ed6c61ad22695e639fb4b5b75fd2b931.webp in Load Image, or use your own reference. The template starts with blank prompts and file selections.

Per-box LoRA and image analysis before Run

External LoRA (main branch) · Download the wired RED/BLUE workflow (JSON)

Open the JSON. In the two Load LoRA (Model Only) nodes, select your local LoRA for RED in the upper loader and BLUE in the lower loader. Both are already connected. The Power Lora Loader above them is for a shared acceleration LoRA.

Two model-only loaders connected to RED · LoRA and BLUE · LoRA below the shared acceleration loader

Right-click a box in MOSS BBOX Canvas to open LoRA settings or Analyze image.

RED box context menu with LoRA settings and Analyze image

  • LoRA settings selects a model LoRA and strength for that box. You can also use the LoRA button on its Prompter card. The assignment is saved with the individual box. In the V2 template, MOSS BBOX Regional LoRA is wired before the sampler. For an existing workflow, connect Canvas framing_data and the incoming MODEL to that node, then send its MODEL to the sampler. LoRA influence is masked per box. Image features can still interact across regions.
  • Analyze image opens a candidate prompt for a Character or Object box with a connected reference-image analysis setup. The preview shows the whole reference and outlines the active box crop. For a subject that extends past the box, choose Analysis area → Full image and Reanalyze. Select Apply to save the candidate to that box. Keep Image analysis enable OFF on the next Run to use the reviewed text.

LoRA file and strength controls

RED's full reference image, candidate text and Apply button

Automatic analysis on Run

1. Choose an image and a box

The generation subgraph exposes Image analysis enable, target and kind, alongside the usual generation settings.

V2 subgraph: analysis switch, target, kind and model settings

| target — destination box | kind — analysis subject | | --- | --- | | Target menu: Auto, RED and BLUE | Kind menu: character or object | | Auto uses the first created/stored box and displays its color, such as Auto · RED. Select a box explicitly to keep the destination fixed. | character describes a person; object describes an object. This does not change the card's Type. |

Missing box means there is no valid target. With analysis ON, running raises an error: create a box or select an existing one first. This version analyzes one reference image and one box. Text targets are excluded, including when Auto selects a Text box.

2. Turn ON and Run

Set Image analysis enable = true, then press the ordinary Run button. The analyzed text is saved automatically to the selected card and used for image generation. No copy/paste or separate Apply button is needed.

3. Turn OFF to edit

Set Image analysis enable = false. The text stays in the card, becomes Manual, and can be edited or replaced. Run again to generate from that saved text, as with ordinary prompting.

Manual RED card: the analysis text remains editable after switching OFF

Running again with analysis ON overwrites manual edits with the new analysis. Switching ON alone does not analyze anything. Keep it OFF while using your edited wording; save the whole workflow to retain it.

Safety in v2.0.1: changing the image, target, body, coordinates, Type or Switch invalidates pending results; Undo or OFF→ON does not revive them. An in-flight job still finishes with its queued inputs. Update from GitHub, restart ComfyUI and press Ctrl+F5.

<details> <summary>ON / OFF control screenshots</summary>

ON (true): Run analyzes the image and saves the result to the selected target.

Analysis ON: true, Auto RED, character

OFF (false): Run uses the saved card text; it does not reanalyze the image.

Analysis OFF: false, with target and kind retained

</details>

The reference is described as text; it is not direct image conditioning. Exact identity, lettering or reproduction is not guaranteed. Even while OFF, connected Load Image inputs must contain a valid image. Analysis settings and detailed behavior.

Everyday controls

| Task | Operation | | --- | --- | | Edit a box | Use its card. Type selects Character / Object / Text; Framing, Angle and Focus add composition hints. Text keeps unused controls disabled. | | Select a covered box | Use the Canvas right-click menu or Alt+click to cycle overlapping boxes. The menu also provides foreground ordering. | | Move / copy / protect | Multi-select, align/distribute, Alt-drag to duplicate, and Lock. Canvas Undo/Redo restores edits. | | Dialogue | Use a separate Text box for exact words. Set Usage/Shape; open Lettering / Bubbles for colors, direction and style. 😀 inserts emoji. Use Export text_mode=literal. | | Shared settings / name | Normally only actual box cards appear. Open Shared defaults when needed; card ⋯ contains Name and Shared. Shared replacement previews the change and asks for confirmation. | | Save | Save both Canvas and Prompter in the workflow. Per-box text, Type, styles, expansion and manual editor sizes are retained. |

Optional connections

  • External STRING: text-processing/LLM node → MOSS BBOX Text Link.text; Canvas.framing_data → Text Link.framing_data; select Box; Text Link.external_text → Prompter.external_text. The card previews external text read-only. Unlinking restores its saved manual text. Details.
  • Krea2 effects: Krea2 BBOX Prompter Suite optionally adds Background Effect / BBOX Prompt Effect after Export. Connect Export.prompt_text → Effect.prompt_in → Effect.prompt_out → CLIP Text Encode.text. Chain both effects if desired; use prompt_out to keep the original prompt. Wiring guide.

Detailed guide and older-version notes · Validation · Issues

V2 GPU operation was confirmed by the user. CPU/UI, saved-state and packaging checks are recorded separately in the validation report. GitHub Releases and Registry publication are separate.

MIT License · UI adapted from Krea2 BBOX Prompter Suite. See LICENSE and NOTICE.md.