Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates frame management and tracking in specified directory for animation projects, supporting numeric and alphabetic indexing.
The Frame Counter (Directory) [Dream] node is designed to facilitate the management and tracking of frames within a specified directory, making it an essential tool for animation projects. This node scans a directory for image files that match a given pattern and counts the number of frames, allowing you to keep track of the current frame number in an animation sequence. It supports both numeric and alphabetic indexing, ensuring flexibility in how frames are organized and accessed. By providing a total frame count and frames per second, it helps in synchronizing animations and maintaining a consistent frame rate, which is crucial for smooth playback and accurate timing in your projects.
This parameter specifies the path to the directory where the image files are stored. It is a string input and should be the location where your animation frames are saved. The default value is an empty string, and it does not support multiline input.
The pattern parameter allows you to define the file naming pattern for the images you want to include in the frame count. It is a string input with a default value of *
, which means it will match all files. You can specify more precise patterns to match specific file types or naming conventions.
This parameter determines the method used to index the frames. It offers two options: numeric
and alphabetic order
. Numeric indexing will count frames based on numerical order, while alphabetic order will count frames based on their alphabetical order. This choice affects how the frames are sorted and counted.
The total_frames parameter sets the total number of frames in the animation sequence. It is an integer input with a default value of 100. The minimum value is 2, and the maximum value is 24 * 3600 * 60, which allows for a wide range of frame counts suitable for various animation lengths.
This parameter defines the frame rate of the animation in frames per second (FPS). It is an integer input with a default value of 30 and a minimum value of 1. This setting is crucial for determining the playback speed and timing of the animation.
The frame_counter output is an instance of the FrameCounter class. It provides the current frame number, total frames, and frames per second. This output is essential for tracking the progress of the animation and synchronizing frame-related operations. It helps in determining the current position within the animation sequence and ensures that the animation runs smoothly and accurately.
© Copyright 2024 RunComfy. All Rights Reserved.