Nodes/RGBYP Mask Editor (RGB + YP)/RGBYP Mask Strength Out
ComfyUI Node

RGBYP Mask Strength Out

RGBYP Mask Strength Out

By akawana·Created 9 months ago·Updated 7 days ago· 5
RGBYP Mask Strength Out
    • red_strength
    • green_strength
    • blue_strength
    • yellow_strength
    • pink_strength
    • combined_strength
    strength_settings

    RGBYP Mask Strength compresses six sliders into one JSON string; RGBYP Mask Strength Out is the node that unpacks them again. It's the other half of the pair, and its whole job is to take that strength_settings string and hand you back six ordinary FLOAT outputs that any node in ComfyUI can swallow.

    The shape of it

    One input: strength_settings (a STRING). Six outputs: red_strength, green_strength, blue_strength, yellow_strength, pink_strength, and combined_strength - matching the six sliders on the strength-builder node, in the same order you'd expect.

    Under the hood it parses the JSON, checks that it's actually a settings blob (ak_id must be mask_strength_settings), and extracts the values as floats. Garbage in gets you None out across the board - which is the safety valve for when you leave the input on its default empty string.

    When you actually need it

    The RGBYP-aware nodes (Mask To Regular Masks, Mask To List) read the string directly, so you don't need this for them. You need it when the consumer is not RGBYP-aware - when you want one of those strengths to drive something that just takes a plain FLOAT widget: a KSampler's denoise, a strength input on some ControlNet or Conditioning node, a mask-feather amount. Instead of hard-coding a number in three different widgets, you keep the number in the strength panel and fan it out here to wherever it should apply.

    That's the real pattern: RGBYP Mask Strength → this node → a handful of unrelated nodes, all staying in sync because there's exactly one source of truth.

    Using it

    Wire it up, don't type into it. The input is forceInput, meaning ComfyUI expects a connection from RGBYP Mask Strength, and the correct usage is to give it one. If you hand it a hand-typed string or leave it empty, the outputs come back as None - and None floats flowing into a downstream widget is a fast way to get a confusing error. It's a splitter, not a scratchpad.

    Installing it

    Same pack, same story:

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

    Restart ComfyUI, or use ComfyUI Manager and search RGBYP. No models, no extra pip dependencies - the whole node is about fifty lines of JSON parsing.

    Verdict

    It's a plumbing node, full stop. In isolation it does nothing you can't do by reading the JSON yourself. In a real workflow it's the difference between one labeled panel driving six different nodes and six unlabeled numbers drifting out of sync. If you're only ever using the RGBYP nodes together, skip it; the moment you mix in anything else, it's the bridge you'll be glad exists.

    CategoryAK/RGBYP

    Inputs (1)

    NameTypeDefaultDescription
    strength_settingsSTRING

    Outputs (6)

    NameTypeDescription
    red_strengthFLOAT
    green_strengthFLOAT
    blue_strengthFLOAT
    yellow_strengthFLOAT
    pink_strengthFLOAT
    combined_strengthFLOAT