A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
The LayerUtility: BatchSelector node is a component within the ComfyUI framework designed to manage and process batches of images and masks. It efficiently selects and returns specific images and masks based on predefined indices, which can be instrumental in workflows requiring image handling and processing.
This node allows users to select specific images and associated masks from a batch of available images and masks. This capability is particularly useful for scenarios where selective processing or examination of certain images is required within a larger set.
The LayerUtility: BatchSelector node accepts the following inputs:
Required Input:
select
(String): A comma-separated string indicating the indices of the images and masks to select from the provided batches. Indices should correspond to the desired items within the list of images and masks.Optional Inputs:
images
(Image List): A list of images from which specific images will be selected based on the indices provided in the select
input.masks
(Mask List): A list of masks corresponding to the images, from which specific masks will be selected similarly.The node produces the following outputs:
image
(Image): A batch of images selected based on the input indices. If the specified index exceeds the available number of images, the last image is reused.mask
(Mask): A batch of masks selected using the same indices, following the same rule as the images.The LayerUtility: BatchSelector node can be integrated into complex ComfyUI workflows that require handling multiple images and masks simultaneously. It is especially useful in customizable image processing pipelines where selective operations are needed. By using this node, users can streamline their workflows, ensuring that only the necessary images and masks are processed further, thus optimizing efficiency and resource usage.
select
input exceed the number of available images or masks, the node will default to selecting the last available image or mask. This behavior ensures robustness, preventing index errors and maintaining the continuity of data processing.This node, with its batch selection capability, fits seamlessly into image processing workflows, providing flexibility and efficiency suited for various applications within the ComfyUI framework.