Visit ComfyUI Online for ready-to-use ComfyUI environment
Cyclically shift video frames for seamless loops and temporal alignment with integer offset control.
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.
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.
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.
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.
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.
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.