ComfyUI Node
OutputLists Combinations
Takes up to 4 OutputLists and generates every combination of them. Example: `[1, 2, 3] x ["A", "B"] = [(1, "A"), (1, "B"), (2, "A"), (2, "B"), (3, "A"), (3, "B")]` `unzip_a` .. `unzip_d` use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes. All lists are optional and empty lists will be ignored. Technically it computes *the Cartesian product* and outputs each combination splitted up into their elements (`unzip`), whereas empty lists will be replaced with units of `None` and they will emit `None` on the respective output. Example: `[1, 2] x [] x ["A", "B"] x [] = [(1, None, "A", None), (1, None, "B", None), (2, None, "A", None), (2, None, "B", None)]`
OutputLists Combinations
- list_a
- list_b
- list_c
- list_d
- unzip_a
- unzip_b
- unzip_c
- unzip_d
- index
- count
CategoryUtility
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| list_aopt | * | (optional) ideally connected to a node with `is_output_list=True` indicated by the symbol `𝌠`. | |
| list_bopt | * | (optional) ideally connected to a node with `is_output_list=True` indicated by the symbol `𝌠`. | |
| list_copt | * | (optional) ideally connected to a node with `is_output_list=True` indicated by the symbol `𝌠`. | |
| list_dopt | * | (optional) ideally connected to a node with `is_output_list=True` indicated by the symbol `𝌠`. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| unzip_a | * | Value of the combinations corresponding to `list_a`. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes. |
| unzip_b | * | Value of the combinations corresponding to `list_b`. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes. |
| unzip_c | * | Value of the combinations corresponding to `list_c`. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes. |
| unzip_d | * | Value of the combinations corresponding to `list_d`. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes. |
| index | INT | Range of 0..count which can be used as an index. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes. |
| count | INT | Total number of combinations. |