master
Custom node that cycles through connected image inputs on each generation, with support for up to 10 images and automatic wrap-around. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ComfyUI Image Cycler
A custom node for ComfyUI that cycles through a list of image inputs on each generation.
Features
- Connect up to 10 images and the node will output the next one in sequence each time the workflow is queued
- Automatically wraps around to the first image after reaching the end
- Outputs the current index so you can track which image is selected
- Reset toggle to restart from the first image
Installation
Clone this repository into your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/SteveCastle/comfyui-image-cycler.git
Restart ComfyUI. The node will appear as Image Cycler under the image category.
Usage
- Add the Image Cycler node to your workflow
- Connect images to the input slots (
image_1is required,image_2–image_10are optional) - Each time you queue a generation, the node outputs the next image in the list
- Enable reset to restart the cycle from the first image
Outputs
| Output | Type | Description |
|---|---|---|
| image | IMAGE | The currently selected image |
| current_index | INT | Zero-based index of the selected image |
Languages
Python
100%