ComfyUI > Nodes > WhiteRabbit > πŸ‡ Roll Frames

ComfyUI Node: πŸ‡ Roll Frames

Class Name

RollFrames

Category
video utils
Author
Artificial-Sweetener (Account age: 367days)
Extension
WhiteRabbit
Latest Updated
2025-11-17
Github Stars
0.04K

How to Install WhiteRabbit

Install this extension via the ComfyUI Manager by searching for WhiteRabbit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WhiteRabbit 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

πŸ‡ Roll Frames Description

Cyclically shift video frames for seamless loops and temporal alignment with integer offset control.

πŸ‡ Roll Frames:

The RollFrames node is designed to cyclically shift a sequence of video frames, effectively rolling the clip forward or backward by a specified number of frames. This operation is particularly useful for creating seamless loops or adjusting the temporal alignment of video sequences. By allowing you to specify an integer offset, the node provides flexibility in how the frames are rearranged, enabling creative control over the timing and flow of your video content. The node also returns the offset used, which can be helpful for reversing the operation if needed. This functionality is essential for video editing tasks where precise control over frame order is required, making it a valuable tool for AI artists looking to experiment with video loops and transitions.

πŸ‡ Roll Frames Input Parameters:

images

This parameter represents the video clip you want to manipulate, consisting of a sequence of frames. The input is expected to be in the format of framesΓ—HΓ—WΓ—C, where H is the height, W is the width, and C is the number of color channels. The images parameter is crucial as it provides the raw data that the node will process to create the desired cyclic shift effect.

offset

The offset parameter determines how far the video clip should be rotated. It is an integer value that specifies the number of frames to shift the sequence. A positive offset moves the frames forward in time, while a negative offset moves them backward. The default value is 1, with a minimum of -9999 and a maximum of 9999, allowing for a wide range of adjustments. This parameter is key to controlling the extent of the cyclic shift, enabling you to fine-tune the loop effect according to your creative needs.

πŸ‡ Roll Frames Output Parameters:

images

This output provides the video clip after it has been cyclically shifted according to the specified offset. The frames are rearranged to reflect the new order, allowing you to see the effect of the roll operation. This output is essential for verifying the results of the node's processing and for further use in your video editing workflow.

offset_out

The offset_out output returns the same integer offset that was used to perform the roll operation. This is useful for keeping track of the adjustments made to the video clip, especially if you plan to reverse the operation later. By providing this information, the node ensures that you have a complete understanding of the changes applied to your video sequence.

πŸ‡ Roll Frames Usage Tips:

  • To create a seamless loop, experiment with different offset values to find the one that best aligns the start and end of your video clip.
  • Use a negative offset if you want to shift the frames backward, which can be useful for reversing the order of events in a video sequence.

πŸ‡ Roll Frames Common Errors and Solutions:

"IndexError: index out of range"

  • Explanation: This error may occur if the offset value is larger than the number of frames in the video clip.
  • Solution: Ensure that the offset value is within the range of the total number of frames in your video clip. Adjust the offset to be less than or equal to the number of frames.

"ValueError: invalid offset value"

  • Explanation: This error can happen if the offset is not an integer or is outside the allowed range.
  • Solution: Check that the offset is an integer and falls within the specified range of -9999 to 9999. Adjust the value accordingly.

πŸ‡ Roll Frames Related Nodes

Go back to the extension to check out more related nodes.
WhiteRabbit
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.