Masks Unpack 8
Split a mask list into eight wireable outputs
- masks
- masks
- masks
- masks
- masks
- masks
- masks
- masks
- masks
The middle size in RES4LYF's mask-unpacking family. Nodes that hand back a list of masks - Masks-From-Color-Swatches is the pack's own example, returning one mask per color swatch - can't be wired directly into individual downstream sockets. Masks Unpack 8 takes that list and, per its own description, "unpacks a list of masks into separate outputs": eight of them here, one step up from Masks-Unpack-4 and one step down from Masks-Unpack-16.
RES4LYF's README brags about regional conditioning supporting "unlimited zones" and mentions setups with over ten zones used in a single image - eight is a reasonable middle ground for a moderately complex multi-region workflow without needing the largest variant.
How it works
Feed it a masks list; it returns eight separate masks outputs, mapped in order from the first item in your list to the first output socket, and so on down the line. Fewer than eight masks in your source list means the remaining outputs have nothing meaningful behind them; more than eight and anything past the eighth is dropped.
The inputs and outputs that matter
masks(required) - the list of masks to split, typically the output of a list-producing node upstream.- Eight
masksoutputs - individually wireableMASKsockets. They're labeled identically in the UI, so track them by position rather than 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
Several outputs come up blank. That means your source list has fewer than eight masks in it - perfectly normal if you only defined, say, five color swatches. Leave the remaining sockets disconnected; they don't carry usable content.
You need more than eight zones. Move up to Masks-Unpack-16. There's no variable-size unpack node in this pack - you pick the fixed size that covers your region count, with room to spare if you expect to add more zones later.
Eight feels like overkill for a simple two- or three-region workflow. It's not wrong to use it - unused outputs are harmless - but Masks-Unpack-4 is the leaner choice if you know your zone count is staying small, and it keeps the node graph a little tidier.
Outputs seem to be in the wrong order. They follow your source list's order exactly, which is usually set by the order you defined swatches (for Masks-From-Color-Swatches) or the order masks were generated upstream. If the mapping looks off, check that ordering first rather than assuming this node reshuffled anything.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| masks | MASK | — |
Outputs (8)
| Name | Type | Description |
|---|---|---|
| masks | MASK | — |
| masks | MASK | — |
| masks | MASK | — |
| masks | MASK | — |
| masks | MASK | — |
| masks | MASK | — |
| masks | MASK | — |
| masks | MASK | — |