ComfyUI Node

RGBYP Mask To List

RGBYP Mask To List

By akawana·Created 9 months ago·Updated 7 days ago· 5
RGBYP Mask To List
  • rgbyp_mask
  • masks
strength_settings

RGBYP Mask To List is the minimalist sibling of RGBYP Mask To Regular Masks. Same job - take the one five-color mask from the editor and break it into separate masks per color - but instead of six named outputs it hands you a list of five masks, in a fixed order: red, green, blue, yellow, pink. That's it. No grow, no blur, no combined mask. Just the split.

Why you'd reach for a list version

ComfyUI has a whole family of nodes that consume masks as lists - batch processors, list-aware loops, nodes that take a mask array and iterate over each item. If you're feeding five region masks into that kind of machinery, a single list output is dramatically cleaner than wiring five named outputs into five separate list constructors. This node exists for exactly that case.

Inputs and output

One required input: rgbyp_mask - the five-color IMAGE from RGBYP Load Image or RGBYP Mask Bridge. One optional input: strength_settings, the JSON string from RGBYP Mask Strength, which scales each mask by its configured strength (skip it and every mask comes out at full strength).

The single output, masks, is a MASK list in the order [red, green, blue, yellow, pink]. The ordering is the contract - downstream nodes will assume index 0 is red, and so on.

How the split works

Identical mechanics to the "regular" splitter: each color is matched by its RGB signature (red is 1,0,0; yellow is 1,1,0; pink is 1,0,1; …) with a 0.5 threshold per channel, so each painted pixel lands white in exactly one mask. Any color you didn't use comes back as a 64×64 black placeholder rather than an error, which keeps list-consumers happy even when you only painted two regions.

Which splitter do you want?

Honest comparison:

  • RGBYP Mask To List - use when you need a mask list, or when you want the smallest, fastest split.
  • RGBYP Mask To Regular Masks - use when you want the named outputs, per-mask grow/blur feathering, or the combined_mask with its per-color or shared-strength weighting.

If you're not already sure you need a list, you probably want the regular version. This one is a specialist, and it's good at being that.

Installing it

Same pack, same install:

cd ComfyUI/custom_nodes
git clone https://github.com/akawana/ComfyUI-RGBYP-Mask-Editor.git

Restart ComfyUI afterwards, or install via ComfyUI Manager by searching RGBYP. No models, no extra dependencies.

CategoryAK/RGBYP

Inputs (2)

NameTypeDefaultDescription
rgbyp_maskIMAGE
strength_settingsoptSTRING

Outputs (1)

NameTypeDescription
masksMASK