Visit ComfyUI Online for ready-to-use ComfyUI environment
Generates all combinations from up to four input lists, useful for exploring dataset pairings.
The CombineOutputLists node is a versatile utility designed to generate all possible combinations from up to four input lists, effectively computing their Cartesian product. This node is particularly useful when you need to explore all potential pairings or groupings of elements from different datasets. By taking each element from the provided lists and combining them in every possible way, it outputs these combinations as separate items. If any of the input lists are empty, they are treated as containing a single None element, ensuring that the node can still produce meaningful output without errors. This feature is especially beneficial for AI artists who want to experiment with different combinations of parameters or settings in their creative workflows, as it allows for a comprehensive exploration of possibilities without manual intervention.
This is an optional input list that serves as one of the sources for generating combinations. If provided, each element in list_a will be paired with elements from the other lists to form combinations. If list_a is empty or not provided, it will be treated as a list containing a single None element. This ensures that the node can still function and produce output even if this list is not populated.
Similar to list_a, this is another optional input list used to create combinations. Each element in list_b will be combined with elements from the other lists. If list_b is empty or not provided, it will default to a list containing None, allowing the node to continue processing without interruption.
This optional input list functions like list_a and list_b, contributing its elements to the combination process. If list_c is empty or omitted, it will be considered as containing a single None element, maintaining the node's ability to generate combinations.
The final optional input list, list_d, also participates in the combination generation. As with the other lists, if list_d is empty or not supplied, it defaults to a list with a single None element, ensuring the node's operations are not hindered by missing data.
This output list contains the elements from the combinations that correspond to list_a. It provides a way to see how each element from list_a was paired with elements from the other lists.
Similar to unzip_a, this output list shows the elements from the combinations that correspond to list_b. It helps in understanding the role of list_b in the generated combinations.
This output list represents the elements from the combinations that correspond to list_c. It allows you to track how list_c contributed to the overall combinations.
This output list contains the elements from the combinations that correspond to list_d. It provides insight into how list_d was used in forming the combinations.
The index output is a list of integers representing the range from 0 to the total number of combinations. This can be used as an index to reference specific combinations.
The count output is an integer that indicates the total number of combinations generated by the node. It provides a quick overview of the scale of the output.
index output to easily reference and manipulate specific combinations in subsequent nodes or processes, especially when dealing with large datasets.None element.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.