Utility nodes for ComfyUI providing batching and image copying functionality.
-
Clone to your ComfyUI custom nodes directory:
cd ComfyUI/custom_nodes/ git clone [repository-url] comfymoss -
Restart ComfyUI
Creates batches of images in connection order.
Inputs:
image_1toimage_6: IMAGE (optional)count_1tocount_6: INT (frames to use from each input, 0 = all)none_value_1tonone_value_6: STRING (RGB color like "127,127,127")max_frames: INT (batch size limit, 0 = unlimited)
Outputs:
images: IMAGE (batched images)
Creates batches of masks in connection order.
Inputs:
mask_1tomask_6: MASK (optional)count_1tocount_6: INT (frames to use from each input, 0 = all)none_value_1tonone_value_6: FLOAT (alpha value 0.0-1.0)max_frames: INT (batch size limit, 0 = unlimited)
Outputs:
masks: MASK (batched masks)
Creates synchronized batches of images and masks.
Inputs:
image_1toimage_6: IMAGE (optional)mask_1tomask_6: MASK (optional)count_1tocount_6: INT (frames to use from each pair, 0 = all)image_none_value_1toimage_none_value_6: STRING (RGB color)mask_none_value_1tomask_none_value_6: FLOAT (alpha value)max_frames: INT (batch size limit, 0 = unlimited)
Outputs:
images: IMAGE (batched images)masks: MASK (batched masks)
Copies source image onto destination with alignment options.
Inputs:
source: IMAGE (image to copy)destination: IMAGE (background image)alignment: STRING (center, top, bottom, left, right)scale: FLOAT (scale factor, default 1.0)x_adjustment: INT (horizontal offset)y_adjustment: INT (vertical offset)mask: MASK (optional, modulates source area)
Outputs:
image: IMAGE (combined result)mask: MASK (placement mask showing where source was copied)
Behavior: Source is resized to fit within destination, then positioned according to alignment. Scale is applied after fit-sizing.
Generate empty batches for workflow initialization.
Inputs: None
Outputs:
empty_batch: IMAGE or MASK (empty batch with shape (0,1,1,3) or (0,1,1))
- Support: Provided as-is for community use, no guaranteed support
- License: MIT - use freely including commercial projects
- Categories: utils/batching and utils/image in ComfyUI node menu