Nodes/RES4LYF/Masks Unpack 16
ComfyUI Node Runs on cloud

Masks Unpack 16

Split a mask list into sixteen wireable outputs

By ClownsharkBatwing·Created 2 years ago·Updated 18 days ago· 1,222
Masks Unpack 16
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks
  • masks

The largest of RES4LYF's mask-unpacking trio. A node that returns a list of masks - Masks-From-Color-Swatches is the pack's own source of these, one mask per color swatch - can't be wired straight into individual downstream sockets, and this node exists to fix that: per its own description, it "unpacks a list of masks into separate outputs," sixteen of them here.

RES4LYF's README specifically claims its regional conditioning has been pushed past ten zones in a single image. If you're anywhere near that scale, this is the unpack node sized for it - Masks-Unpack-4 and Masks-Unpack-8 top out well below what a genuinely complex regional setup needs.

How it works

Feed it a masks list; it returns sixteen separate masks outputs, mapped in order - first list item to the first socket, and so on. If your source list has fewer than sixteen masks, the remaining outputs carry nothing meaningful; more than sixteen, and anything past the sixteenth is dropped.

The inputs and outputs that matter

  • masks (required) - the list of masks to split.
  • Sixteen masks outputs - individually wireable MASK sockets, identically labeled in the UI, so track them by their position rather than their name.

How to install it

Via ComfyUI Manager: search "RES4LYF" and install. Manually, from ComfyUI/custom_nodes:

git clone https://github.com/ClownsharkBatwing/RES4LYF/
cd RES4LYF
pip install -r requirements.txt

Activate your venv first if you use one; on portable installs, use python_embedded\Scripts\pip.exe in place of pip. Restart ComfyUI once installed.

Common issues & troubleshooting

A large graph with sixteen output sockets gets hard to trace visually. This is the honest cost of going big on zone count - with this many outputs on one node, mislabeling which socket feeds which region is an easy mistake. Consider naming your downstream nodes clearly (region 1, region 2, ...) as you wire them, since the outputs themselves are all identically labeled.

Most outputs are empty. Totally normal if your actual zone count is well under sixteen - check your source list's length before assuming something's broken. If you're only working with a handful of regions, Masks-Unpack-4 or Masks-Unpack-8 is a cleaner fit and easier to keep straight.

Even sixteen isn't enough. There's no larger fixed-size or dynamic variant in this pack as of this writing - if you're genuinely past sixteen zones, you'd need to split the work across more than one unpack node, or reconsider whether that many independently-masked regions is the right structure for the shot.

You're not sure your list is actually populated correctly before unpacking. Preview the list count upstream (or step through with a simpler unpack node first) before committing to the full sixteen-output version - it's easier to debug a mismatch with fewer sockets in play.

CategoryRES4LYF/masks

Inputs (1)

NameTypeDefaultDescription
masksMASK

Outputs (16)

NameTypeDescription
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK
masksMASK