ComfyUI Node

RGBYP Mask Strength

RGBYP Mask Strength

By akawana·Created 9 months ago·Updated 7 days ago· 5
RGBYP Mask Strength
    • strength_settings
    red_strength0.50
    green_strength0.50
    blue_strength0.50
    yellow_strength0.50
    pink_strength0.50
    combined_strength0.50

    Here's the thing about regional masking: the fun part is painting, and the fiddly part is balancing how much each region actually influences the result. RGBYP Mask Strength is the pack's answer to that fiddly part - one node where you set the strength for all five colors in one place, then share that single setting across every node that cares.

    It looks almost comically minimal: six sliders in, one string out. But that one string is the whole trick.

    What it does

    The inputs are red_strength, green_strength, blue_strength, yellow_strength, pink_strength, and combined_strength - each a float from 0.05 to 1.0, default 0.5. You dial in, say, red at 0.8 and yellow at 0.3. The node then packs all six values into a single JSON string and emits it as one output: strength_settings.

    That output is a settings bus. Wire it into:

    • RGBYP Mask To Regular Masks - the split honors those strengths, so your red mask comes out at 0.8 gray and yellow at 0.3.
    • RGBYP Mask To List - same behavior, list form.
    • RGBYP Mask Strength Out - the companion node that unpacks the string back into six individual float outputs for any node that isn't RGBYP-aware.

    The point is you set the strengths once, in a clearly labeled panel, instead of scattering six duplicate sliders across half a dozen nodes and trying to keep them in sync. Change red strength once here and every consumer updates.

    A couple of details

    The string is JSON with an ak_id of "mask_strength_settings", and the nodes that consume it check that id before trusting the payload - so you can't accidentally feed it someone else's string and get garbage applied silently. The range floor of 0.05 (rather than 0.0) is deliberate: there's no "completely off" state, just "very weak." If you truly want a color gone, don't paint it.

    Installing it

    Part of the RGBYP pack, so:

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

    or ComfyUI Manager → search RGBYP → Install, then restart ComfyUI. No models, no extra dependencies - this node is a thin JSON packer.

    The honest take

    Is it overkill? For a one-off mask, yes - you can type a strength into the splitter's widget and move on. It earns its place the moment you have several masks in one workflow, or a workflow you share, because it turns six buried settings into one labeled panel. It's the kind of "small thing that keeps a graph tidy" node that quietly pays for itself.

    CategoryAK/RGBYP

    Inputs (6)

    NameTypeDefaultDescription
    red_strengthFLOAT0.500.05–1
    green_strengthFLOAT0.500.05–1
    blue_strengthFLOAT0.500.05–1
    yellow_strengthFLOAT0.500.05–1
    pink_strengthFLOAT0.500.05–1
    combined_strengthFLOAT0.500.05–1

    Outputs (1)

    NameTypeDescription
    strength_settingsSTRING