ComfyUI > Nodes > ComfyUI 1hewNodes > Image PingPong

ComfyUI Node: Image PingPong

Class Name

1hew_ImagePingPong

Category
1hewNodes/image
Author
1hew (Account age: 1113days)
Extension
ComfyUI 1hewNodes
Latest Updated
2026-04-17
Github Stars
0.03K

How to Install ComfyUI 1hewNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI 1hewNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 1hewNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image PingPong Description

Creates a "ping-pong" effect in image sequences for smooth, dynamic animation transitions.

Image PingPong:

The 1hew_ImagePingPong node is designed to manipulate sequences of images by creating a "ping-pong" effect, which is commonly used in animation to create a back-and-forth motion. This node allows you to reverse the order of images, repeat sequences, and trim frames to achieve the desired animation effect. By leveraging this node, you can efficiently manage image sequences for creative projects, ensuring smooth transitions and dynamic visual effects. The node's primary goal is to provide flexibility in handling image sequences, making it an essential tool for AI artists looking to enhance their animations with minimal effort.

Image PingPong Input Parameters:

image

This parameter accepts a tensor representing the sequence of images you wish to process. The images should be formatted correctly to ensure proper execution of the node's functions.

pre_reverse

This boolean parameter determines whether the sequence of images should be reversed before any other operations are applied. Setting this to True will reverse the order of images, which can be useful for creating specific animation effects. The default value is False.

ops_count

This integer parameter specifies the number of operations or cycles to perform on the image sequence. It controls how many times the sequence will be repeated or manipulated. The minimum value is 0, the maximum is 100,000, and the default is 1.

frame_count

This integer parameter defines the total number of frames to be included in the output sequence. It allows you to trim the sequence to a specific length, ensuring that the final output meets your requirements. The minimum value is 0, the maximum is 1,000,000, and the default is 0.

This boolean parameter indicates whether to remove the linking frame between forward and backward sequences. When set to True, it ensures a smoother transition by eliminating duplicate frames at the junctions. The default value is True.

Image PingPong Output Parameters:

image

The output is a tensor representing the processed sequence of images. This sequence reflects the applied operations, such as reversing, repeating, and trimming, based on the input parameters. The output is ready for use in animations or further processing, providing a seamless and dynamic visual effect.

Image PingPong Usage Tips:

  • To create a simple back-and-forth animation, set ops_count to 1 and ensure pre_reverse is False. This will generate a sequence that plays forward and then backward.
  • Use frame_count to control the length of your animation precisely. This is particularly useful when you need to match a specific duration or fit within a timeline.

Image PingPong Common Errors and Solutions:

"IndexError: index out of range"

  • Explanation: This error occurs when the frame_count exceeds the number of available frames in the sequence.
  • Solution: Ensure that frame_count is set to a value less than or equal to the total number of frames in the input sequence.

"RuntimeError: CUDA error: device-side assert triggered"

  • Explanation: This error might occur if the input tensor is not on the correct device or if there is a mismatch in tensor dimensions.
  • Solution: Verify that the input tensor is on the correct device (CPU or GPU) and that its dimensions match the expected format.

Image PingPong Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI 1hewNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Image PingPong