Skip to content

mossmatrix/comfymoss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ComfyUI Batch & Copy Nodes

Utility nodes for ComfyUI providing batching and image copying functionality.

Installation

  1. Clone to your ComfyUI custom nodes directory:

    cd ComfyUI/custom_nodes/
    git clone [repository-url] comfymoss
  2. Restart ComfyUI

Nodes

Image Batcher

Creates batches of images in connection order.

Inputs:

  • image_1 to image_6: IMAGE (optional)
  • count_1 to count_6: INT (frames to use from each input, 0 = all)
  • none_value_1 to none_value_6: STRING (RGB color like "127,127,127")
  • max_frames: INT (batch size limit, 0 = unlimited)

Outputs:

  • images: IMAGE (batched images)

Mask Batcher

Creates batches of masks in connection order.

Inputs:

  • mask_1 to mask_6: MASK (optional)
  • count_1 to count_6: INT (frames to use from each input, 0 = all)
  • none_value_1 to none_value_6: FLOAT (alpha value 0.0-1.0)
  • max_frames: INT (batch size limit, 0 = unlimited)

Outputs:

  • masks: MASK (batched masks)

Image Mask Batcher

Creates synchronized batches of images and masks.

Inputs:

  • image_1 to image_6: IMAGE (optional)
  • mask_1 to mask_6: MASK (optional)
  • count_1 to count_6: INT (frames to use from each pair, 0 = all)
  • image_none_value_1 to image_none_value_6: STRING (RGB color)
  • mask_none_value_1 to mask_none_value_6: FLOAT (alpha value)
  • max_frames: INT (batch size limit, 0 = unlimited)

Outputs:

  • images: IMAGE (batched images)
  • masks: MASK (batched masks)

Image Copy Paste

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.

Empty Image Batch / Empty Mask Batch

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))

Notes

  • 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

About

General useful nodes for ComfyUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages