Steve CastleandClaude Opus 4.6 0881ebe131 Initial commit: ComfyUI Image Cycler node
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>
2026-03-07 14:50:11 -08:00

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

  1. Add the Image Cycler node to your workflow
  2. Connect images to the input slots (image_1 is required, image_2–image_10 are optional)
  3. Each time you queue a generation, the node outputs the next image in the list
  4. 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
S
Description
No description provided
Readme
26 KiB
Languages
Python 100%