MultiPrimitive Node Documentation
Overview
The MultiPrimitive node, available in the ComfyUI-Custom-Scripts repository, is a utility node designed to handle and process multiple primitive inputs. Its primary function is to accept a flexible set of optional inputs and produce a list of values from these inputs. This node is especially useful in workflows where dynamic or varied input handling is needed.
Functionality
- Purpose: The MultiPrimitive node collects a range of inputs and converts them into a list, which can then be used in subsequent nodes or processes within a ComfyUI workflow.
- Use Case: It acts as a utility node for combining multiple inputs into a single list, simplifying workflows that require aggregation or collection of parameters before processing.
Inputs
- Optional Inputs: The node accepts zero or more optional inputs. These inputs can be of any type, serving as placeholders for various data or parameters that might need to be collected into a list.
Outputs
- List Output: The node outputs a single list containing all the provided optional inputs. This list can then be fed into other nodes that require batch processing or grouped parameters.
Usage in Workflows
- Dynamic Input Aggregation: Use the MultiPrimitive node in scenarios where you need to pass multiple variables or parameters as a single list to another node in your workflow.
- Flexible Parameter Handling: Integrate this node when building workflows that require the flexible addition or removal of parameters without the need to restructure or reconfigure upstream nodes.
Special Features and Considerations
- Wildcard Support: The node is designed with flexibility in mind, allowing any type of input to be passed to it. This is represented by its capability to accept inputs without strict type restrictions.
- Output as a List: Unlike other nodes that may process individual inputs separately, the MultiPrimitive node’s primary feature is its ability to consolidate inputs into a structured list output.
- Compatibility and Utility: This node is categorized under utility nodes, highlighting its role as a supportive tool rather than a standalone processing node. It should be used in conjunction with other nodes that can take advantage of its list output.
Node Category
- Category: The MultiPrimitive node is categorized under the "utils" section in ComfyUI, indicating its utility function focused on aiding workflow efficiency and flexibility.
By incorporating the MultiPrimitive node into your ComfyUI workflows, you can efficiently manage and aggregate a variety of inputs, streamlining processes that require dynamic data handling.