Visit ComfyUI Online for ready-to-use ComfyUI environment
Automate mask sequence creation and manipulation for smooth animation transitions and holds.
The MaskSequenceHelper node is designed to facilitate the creation and manipulation of mask sequences for animation workflows. This node is particularly useful for generating timelines and mask definitions that can be used to create smooth transitions and holds between different frames in an animation. By leveraging this node, you can automate the process of repeating images, adding transitions, and padding frames, which significantly streamlines the animation creation process. The primary goal of the MaskSequenceHelper is to provide a robust and flexible tool for managing complex mask sequences, making it easier to achieve professional-quality animations with minimal manual effort.
The image_stream
parameter is a required input that accepts a stream of images. This stream serves as the source material for generating the mask sequences. The images in the stream will be repeated and manipulated according to the specified hold and transition lengths to create the desired animation effect.
The num_images
parameter specifies the number of images to be used in the sequence. It is an integer value with a default of 4 and a minimum of 1. This parameter determines how many images from the image_stream
will be included in the animation cycle.
The hold_length
parameter defines the duration for which each image will be held before transitioning to the next image. It is an integer value with a default of 5 and a minimum of 1. A longer hold length will result in each image being displayed for a more extended period, creating a slower-paced animation.
The transition_length
parameter specifies the duration of the transition between consecutive images. It is an integer value with a default of 20 and a minimum of 1. This parameter controls the smoothness of the transition, with longer transition lengths resulting in more gradual changes between images.
The padding_frames
parameter allows you to add extra frames at the end of the sequence. It is an integer value with a default of 0 and a minimum of 0. Padding frames can be useful for extending the duration of the final image in the sequence, ensuring a smooth loop or providing additional time for the last frame to be displayed.
The first_timeline
output is a tensor containing the first sequence of images generated based on the input parameters. This timeline includes the repeated images, holds, and transitions as specified, providing a complete sequence for the first part of the animation.
The second_timeline
output is a tensor containing the second sequence of images. This timeline is similar to the first but is offset to create a complementary sequence, which can be used for more complex animation effects or dual-layer animations.
The first_text_output
is a string that contains the mask definitions for the first timeline. This text output provides a detailed description of the frame-by-frame mask values, which can be used for further processing or debugging.
The second_text_output
is a string that contains the mask definitions for the second timeline. Like the first text output, this string provides a detailed description of the mask values for each frame in the second timeline.
The total_frames
output is an integer representing the total number of frames in the generated sequence. This value includes all the holds, transitions, and padding frames, providing a complete count of the frames in the animation.
hold_length
and transition_length
values to find the optimal balance between image holds and transitions.padding_frames
parameter to extend the duration of the final image in the sequence, ensuring a smooth loop or providing additional time for the last frame to be displayed.first_text_output
and second_text_output
strings to understand the frame-by-frame mask values, which can be useful for debugging or further processing.num_images
parameter exceeds the number of images available in the image_stream
.num_images
parameter does not exceed the number of images provided in the image_stream
.hold_length
or transition_length
parameters are set to negative values.hold_length
and transition_length
parameters are set to positive integer values.image_stream
is not provided as a tensor.image_stream
input is a tensor containing the images to be used in the sequence.© Copyright 2024 RunComfy. All Rights Reserved.