Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json β€” we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > WhiteRabbit > πŸ‡ Roll Frames

ComfyUI Node: πŸ‡ Roll Frames

Class Name

RollFrames

Category
video utils
Author
Artificial-Sweetener (Account age: 594days)
Extension
WhiteRabbit
Latest Updated
2026-07-28
Github Stars
0.08K

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 transitions and creative effects, with reversible operation.

πŸ‡ Roll Frames:

The RollFrames node is designed to cyclically shift a sequence of video frames, effectively rotating the clip by a specified integer amount. This operation is akin to rolling a loop, where frames are moved forward or backward in time, creating a seamless transition that can be particularly useful in video editing and animation tasks. The primary benefit of using this node is its ability to manipulate the temporal order of frames without altering the content of each frame, allowing for creative effects such as looping animations or preparing frames for further processing. The node also provides the same offset value used for the roll, enabling you to easily reverse the operation if needed. This feature is especially valuable for maintaining control over the sequence of frames and ensuring that any changes can be undone or adjusted as required.

πŸ‡ Roll Frames Input Parameters:

images

This parameter represents the batch of video frames that you want to manipulate. It is a tensor containing the frames 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 frames are processed as a batch, allowing for efficient manipulation of the entire sequence. The input frames are expected to be in a format compatible with PyTorch tensors, ensuring smooth integration with other processing nodes.

offset

The offset parameter determines how far the frames should be rotated within the sequence. It is an integer value that can be positive or negative, with a default value of 1. A positive offset moves the frames forward in time, while a negative offset moves them backward. The range for this parameter is from -9999 to 9999, providing flexibility in how much the frames are shifted. This parameter is crucial for defining the extent of the cyclic shift and directly impacts the resulting order of frames in the output.

πŸ‡ Roll Frames Output Parameters:

images

This output parameter provides the batch of frames after they have been cyclically shifted according to the specified offset. The frames are returned in the same format as the input, ensuring consistency and ease of use in subsequent processing steps. The output frames reflect the new temporal order, allowing you to see the effects of the roll operation.

offset_out

The offset_out parameter returns the same offset value that was used to perform the roll operation. This output is important for tracking the changes made to the frame sequence and for enabling the reversal of the operation if needed. By providing the offset value, the node ensures that you have all the necessary information to manage and adjust the frame sequence as required.

πŸ‡ Roll Frames Usage Tips:

  • To create a seamless looping animation, experiment with different offset values to find the most visually appealing transition between the start and end of the sequence.
  • Use the offset_out parameter to keep track of the changes made to the frame sequence, making it easier to reverse or adjust the operation later.

πŸ‡ Roll Frames Common Errors and Solutions:

Invalid tensor format

  • Explanation: The input frames are not in the expected tensor format (framesΓ—HΓ—WΓ—C).
  • Solution: Ensure that the input frames are correctly formatted as a PyTorch tensor with the appropriate dimensions.

Offset out of range

  • Explanation: The specified offset value is outside the allowed range of -9999 to 9999.
  • Solution: Adjust the offset value to be within the specified range to ensure proper execution of the roll operation.

πŸ‡ 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.

πŸ‡ Roll Frames