Extensions/comfyui-momo-nodes
ComfyUI Extension

comfyui-momo-nodes

Custom nodes for ComfyUI by Momo.

By PhykrexΒ·Created 4 months agoΒ·Updated 4 months agoΒ· 0
Phykrex/ComfyUI-Momo-Nodes
Nodes3
On cloudLocal install
CategoryMomoNodes/conditioning, MomoNodes/mask
Stars0
Updated4 months ago
Readme

🎨 ComfyUI-Momo-Nodes

Custom nodes for ComfyUI by Momo.

A growing collection of quality-of-life nodes focused on masking, visual editing, and workflow improvements.


Nodes

RGB Mask Editor ✏️

<img width="993" height="1046" alt="image" src="https://github.com/user-attachments/assets/215f3cba-e225-4bf1-8f42-a1578d5511d5" />

An interactive visual editor for creating RGB color masks directly inside ComfyUI β€” with drag-and-drop shape manipulation, rotation, layers, and multiple shape types.

Features:

  • Interactive canvas editor with click-drag shape creation
  • 9 shape types: rectangle, ellipse, triangle, diamond, pentagon, hexagon, star, arrow, cross
  • Move, resize, and rotate shapes with intuitive handles
  • Layer system with z-index ordering
  • Per-shape color, opacity, rotation controls
  • Undo/Redo (Ctrl+Z / Ctrl+Y)
  • Keyboard shortcuts (V = Select, R = Rect, E = Ellipse, Del = Delete)
  • Shift + rotate for 15Β° snapping
  • Resolution-independent (coordinates stored as percentages)
  • Live preview on the node after saving

RGB Mask Splitter πŸ”€

<img width="762" height="1100" alt="image" src="https://github.com/user-attachments/assets/0635d6a6-412f-47da-8db4-43da1300caa0" />

Companion node that splits an RGB mask image into separate masks by color matching with configurable tolerance. Useful for applying different conditioning/prompts to each color region.

Conditioning Mask Combine (dynamic) 🎭

<img width="561" height="611" alt="image" src="https://github.com/user-attachments/assets/545a36e9-1211-4fdc-9843-ed76fcb3c0fd" />

Combines multiple (positive, negative, mask) triplets into a single positive/negative conditioning pair β€” a drop-in replacement for chains of native Conditioning (Set Mask) + Conditioning (Combine) nodes.

Features:

  • Dynamic triplets: the node starts with one slot and automatically reveals the next one each time you connect an input (up to 10)
  • Per-triplet mask_strength and set_cond_area (default / mask bounds) β€” no shared settings
  • Incomplete triplets are skipped silently, so unused slots never block the workflow
  • Pairs naturally with RGB Mask Splitter for regional prompting

Installation

Manual

cd ComfyUI/custom_nodes/
git clone https://github.com/Phykrex/ComfyUI-Momo-Nodes.git

Restart ComfyUI. No additional dependencies required (uses Pillow, torch, numpy β€” already included with ComfyUI).

ComfyUI Manager

Search for Momo Nodes in the ComfyUI Manager and install.


Usage

Find all nodes under the MomoNodes/ category in the right-click node menu.

RGB Mask Editor workflow

RGB Mask Editor ✏️ β†’ RGB Mask Splitter πŸ”€ β†’ Conditioning Mask Combine (dynamic) 🎭 β†’ KSampler
  1. Add RGB Mask Editor node, set width/height/background color
  2. Click 🎨 Open RGB Mask Editor to launch the visual editor
  3. Draw shapes with different colors for different regions
  4. Apply & Close to save
  5. Connect to RGB Mask Splitter to extract individual masks per color
  6. Feed each mask together with its own positive/negative conditioning into Conditioning Mask Combine (dynamic) β€” new triplets appear as you connect
  7. Pipe the combined positive/negative into your KSampler

License

MIT