Nodes/comfyui-arkennemasis/arkennemasis Region Mask (one region from the locked plate)
ComfyUI Node

arkennemasis Region Mask (one region from the locked plate)

Fetch one named region's mask out of the locked plate. Give it a cell and it resolves that cell's own target region by itself, so the per-cell chain needs no per-region wiring however many regions the product has.

By Hishamahmer·Created about a month ago·Updated 9 days ago· 5
arkennemasis Region Mask (one region from the locked plate)
    • mask
    • region
    • found
    plate_lock_json{}
    cell_json
    region
    invertfalse
    on_missing
    Categoryarkennemasis/Variation

    Inputs (5)

    NameTypeDefaultDescription
    plate_lock_jsonSTRING{}From Plate Lock.
    cell_jsonoptSTRINGThe cell whose target region to fetch. Its leading axis — the one painting the largest area — decides.
    regionoptSTRINGOverrides the cell's region.
    invertoptBOOLEANfalseReturn everything EXCEPT this region.
    on_missingoptCOMBOWhat to do when the plate has no mask for that region. 'empty mask' lets a run continue with a whole-frame colour reading, which is weaker but not wrong; 'fail' stops so you notice the masks were never authored.

    Outputs (3)

    NameTypeDescription
    maskMASK
    regionSTRING
    foundBOOLEAN