Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-MossPanelDataset > Choose a panel layout (2–6 panels)

ComfyUI Node: Choose a panel layout (2–6 panels)

Class Name

MossPanelDatasetFlexible

Category
Manga panel dataset
Author
sepiablue-ai (Account age: 467days)
Extension
ComfyUI-MossPanelDataset
Latest Updated
2026-11-05
Github Stars
0.04K

How to Install ComfyUI-MossPanelDataset

Install this extension via the ComfyUI Manager by searching for ComfyUI-MossPanelDataset
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-MossPanelDataset in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Choose a panel layout (2–6 panels) Description

Builds structured manga prompts from page layouts, shared characters, and panel scenes.

Choose a panel layout (2–6 panels):

MossPanelDatasetFlexible prepares a structured manga-generation prompt by combining a predefined page layout with shared character descriptions and individual panel content. It helps you organize a multi-panel page consistently, keeping each character’s name and appearance connected to the scenes in which they appear. You can prepare a complete manga page with scenes and dialogue, or create a prompt for empty panel frames when you want to focus on page structure first. For complete manga pages, the node checks that the supplied panel content matches the selected layout and that the characters used in each panel have been defined. It also preserves composition-box information when that information is included in the panel content. This node assembles instructions for a later generation step; it does not generate or render an image itself.

Choose a panel layout (2–6 panels) Input Parameters:

コマ割り

Required input of type COMBO[STRING] that selects the page layout. The available choices are collected from the layout catalog in both its default language and English, so the exact option names depend on the installed catalog and are not listed in the supplied source. The selected layout determines the panel count and the page dimensions used by the node. For complete manga generation, it also determines exactly how many panel-content connections you must provide: a three-panel layout requires コマ1, コマ2, and コマ3, with no additional panel connections. For empty-frame generation, this layout is passed to the prompt compiler without the character or panel-story information. No explicit default, numeric minimum, or numeric maximum is declared for this selector.

生成内容

Required input of type COMBO[STRING] that selects the kind of prompt to prepare. Its choices come from the project’s OUTPUTS definitions, whose complete display labels and ordering are not included in the supplied source. The implementation explicitly recognizes the canonical mode 空のコマ枠, meaning empty panel frames, and otherwise follows the manga-content path, which compiles using the canonical mode 漫画. Empty-frame mode uses the selected layout without processing the shared cast or individual panel content; manga-content mode validates the panel connections and incorporates scenes, characters, dialogue, and any supplied composition boxes. No explicit default or numeric range is declared. Although empty-frame mode does not read the character and panel-story data during execution, those sockets remain marked as required in the node interface.

人物設定

Required input of type MOSS_MANGA_CAST containing the shared character definitions, normally supplied by a compatible character-setting node such as MossMangaCharacters. In manga-content mode, the node uses this information to translate each panel’s character references into names and to build a name-to-appearance mapping for the prompt. Every character slot used in a panel’s actor list must exist in this shared cast; otherwise, the node stops with an explanatory error. Dialogue speakers are also resolved through the same cast, so their slots must be defined as well. Keep names and appearances complete and consistent across the page. This input is not read by the empty-frame execution branch. No default value, numeric range, or fixed list of cast entries is declared here.

コマ1

Required input of type MOSS_MANGA_PANEL containing the content for panel 1 in the selected layout’s panel sequence. In manga-content mode, the node reads its scene, actor references, and dialogue, resolves character references through 人物設定, and includes any composition_boxes information that is present. Supply a compatible panel-content object, such as one produced by MossMangaPanel, rather than plain text. This input provides the first panel’s narrative content; the selected layout supplies the page structure. No default value or numeric range is declared. The empty-frame execution branch does not process this content, even though the socket is required by the interface.

コマ2

Required input of type MOSS_MANGA_PANEL containing the content for panel 2 in the selected layout’s panel sequence. It is processed in the same way as コマ1: scene information, actors, dialogue, and any composition boxes are incorporated into the manga prompt, with character names and appearances resolved from 人物設定. Connect the content intended for the second panel, rather than relying on the position of nodes on the workflow canvas to establish order. No default value or numeric range is declared. As with コマ1, the empty-frame execution branch ignores this content, but the interface still marks its socket as required.

コマ3

Optional input of type MOSS_MANGA_PANEL containing the third panel’s content. Although this socket is optional in the interface, it becomes necessary in manga-content mode whenever the selected layout has at least three panels. If the layout has only two panels, connecting コマ3 causes an extra-panel error. Its scene, actors, dialogue, and optional composition boxes are processed in the same way as the earlier panels. No default value or numeric range is declared, and the empty-frame execution branch does not read it.

コマ4

Optional input of type MOSS_MANGA_PANEL containing the fourth panel’s content. In manga-content mode, connect it when the selected layout has four or more panels, and leave it disconnected when the layout has fewer than four. It contributes the fourth scene and its associated characters, dialogue, and any composition-box information to the compiled prompt. Supplying it for a layout that does not include a fourth panel causes the panel-count validation to fail. No default value or numeric range is declared, and the empty-frame execution branch does not read it.

コマ5

Optional input of type MOSS_MANGA_PANEL containing the fifth panel’s content. For manga-content generation, it is required when the selected layout has five or six panels and must remain disconnected for layouts with fewer than five panels. The node resolves its character references using the shared cast and preserves any composition boxes included in its content. This socket is not a way to add an extra panel to a smaller layout; the layout determines the required number of panels. No default value or numeric range is declared, and the empty-frame execution branch does not read it.

コマ6

Optional input of type MOSS_MANGA_PANEL containing the sixth panel’s content. For a six-panel manga layout, connect this socket along with コマ1 through コマ5. For layouts with fewer panels, leave it disconnected to avoid an extra-panel error. The node processes its scene, actor references, dialogue, and optional composition boxes just like those of the preceding panels. This is the final panel socket exposed by the interface; there are no connections for panels beyond six. No default value or numeric range is declared, and the empty-frame execution branch does not read it.

Choose a panel layout (2–6 panels) Output Parameters:

MOSS prompt

Output of type STRING containing the text returned by the project’s prompt compiler. In empty-frame mode, it is compiled from the selected layout using the empty-panel-frame setting. In manga-content mode, it is compiled from the layout, the shared character name-and-appearance mapping, and the ordered panel descriptions, including dialogue and any supplied composition boxes. Use this text in the appropriate downstream prompt-processing or image-generation workflow. It is a text instruction rather than an image, and the exact wording and formatting depend on the prompt compiler, whose implementation is not shown in the supplied node source.

Width

Output of type INT containing the width stored in the selected layout. The node returns this value directly; it does not calculate it from the panel descriptions or offer an independent width adjustment. Use it to keep a compatible downstream image-generation setup aligned with the selected page layout. The supplied source does not list the available width values, their range, or a default, because these are defined by the layout catalog.

Height

Output of type INT containing the height stored in the selected layout. Together with Width, it describes the page dimensions associated with that layout and can be passed to compatible downstream size controls. It remains tied to the layout regardless of whether you prepare empty frames or a complete manga prompt. The supplied source does not list the available height values, their range, or a default.

Choose a panel layout (2–6 panels) Usage Tips:

  • Choose コマ割り before connecting the optional panel sockets. In manga-content mode, the connected panels must match the layout exactly: for example, a four-panel layout requires コマ1 through コマ4, while コマ5 and コマ6 must remain disconnected.
  • Treat optional sockets as conditionally required. コマ3 through コマ6 are optional only because different layouts need different panel counts; you cannot omit an intermediate panel that the selected layout requires.
  • Build 人物設定 before assembling the panel content. Make sure every character you select for a panel has both a name and an appearance in the shared character setup, and use valid shared character slots for dialogue speakers.
  • Keep character names distinct when you intend to describe different characters. The node builds an appearance mapping keyed by character name, so duplicate names can overwrite one another’s appearance entries.
  • Use 空のコマ枠 when you want to prepare page structure without including the story content. This branch skips cast and panel-content processing, but it does not change the required-socket declarations; keep required connections available if ComfyUI requires them to validate the workflow.
  • Connect Width and Height to compatible downstream dimension controls when you want the generation setup to match the chosen layout. Changing panel text does not change these dimensions; choose a different layout if you need different catalog-defined dimensions.
  • If your compatible panel-content node supplies composition_boxes, keep that information in the panel data when you want it included in the compiled prompt. This node forwards those boxes; it does not create them.
  • Review all panel connections after switching layouts. Previously connected optional panels are not automatically ignored in manga-content mode and can trigger an extra-panel error.

Choose a panel layout (2–6 panels) Common Errors and Solutions:

The selected layout has N panels. Connect one "Panel content" node to each of panel 1 to panel N, and disconnect the others (not connected: panel X).

  • Explanation: In manga-content mode, at least one panel required by the selected layout has no supplied content. The actual message substitutes the layout’s panel count and the missing panel numbers, and includes a Japanese version as well. Optional interface sockets such as コマ3 are still required when the selected layout contains those panels.
  • Solution: Connect a compatible panel-content node to every socket from コマ1 through the layout’s final panel. For example, a three-panel layout needs コマ1, コマ2, and コマ3, without gaps.

The selected layout has N panels. Connect one "Panel content" node to each of panel 1 to panel N, and disconnect the others (extra: panel X).

  • Explanation: One or more panel sockets are connected beyond the number of panels in the selected layout. The node rejects these extra connections rather than ignoring them. If panels are both missing and extra, the same error message reports both problems.
  • Solution: Disconnect every panel socket beyond the selected layout’s panel count, or select a layout that matches the content you intend to supply. Recheck the connections whenever you change コマ割り.

Panel N uses CHARACTER, but CHARACTER is not set in "Shared characters".

  • Explanation: A panel’s actor list refers to a character slot that is absent from 人物設定. The complete bilingual message identifies the panel and character and asks you to fill in both the character name and appearance or change the panel’s characters.
  • Solution: In the shared character-setting node, complete both the name and appearance for the indicated character slot. Alternatively, change the affected panel to use a character already present in the shared cast.

Required input is missing

  • Explanation: ComfyUI may report a required-input validation error if 人物設定, コマ1, コマ2, or another required input is unavailable. The exact wording depends on ComfyUI. Selecting empty-frame mode does not remove the required declarations, even though that execution branch does not read the cast or panel-story content.
  • Solution: Supply the required inputs with compatible connections and choose valid dropdown values. For empty-frame workflows, retain valid required connections if your ComfyUI validation requires them.

KeyError involving a character slot or panel-content field

  • Explanation: This is a possible Python error rather than a custom message defined by the node. The implementation directly reads fields such as scene, actors, and dialogue, as well as character names and appearances. It also looks up dialogue speaker slots in the shared cast without the explicit missing-character check used for the actor list. Incomplete custom data or an undefined dialogue speaker can therefore cause a missing-key error.
  • Solution: Use compatible character-setting and panel-content nodes to supply the expected data structures. Check that each dialogue speaker exists in 人物設定 and that character definitions contain both names and appearances. If you are passing custom data, restore the fields required by the node before trying again.

Layout catalog or layout-loading error

  • Explanation: The node reads the layout catalog’s modification time and loads the selected layout before preparing a prompt. A missing or unreadable catalog, or a layout that cannot be loaded, can stop execution. The exact message comes from the filesystem or layout-loading code and is not shown in the supplied source.
  • Solution: Confirm that ComfyUI-MossPanelDataset is installed with its layout catalog files intact and accessible. Restart ComfyUI after repairing or updating the installation, then select an available layout again. If the problem continues, check the execution log for the specific file or layout named in the error.

Choose a panel layout (2–6 panels) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-MossPanelDataset
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Choose a panel layout (2–6 panels)