Get Last Output Video Path:
The Get Last Output Video Path node is designed to help you efficiently locate the most recent video file generated by ComfyUI within a specified subfolder. This node is particularly useful for AI artists who frequently work with video outputs and need a quick way to access the latest file without manually searching through directories. By leveraging this node, you can streamline your workflow, ensuring that you always have easy access to your most recent video creations. The node operates by searching for video files in the specified subfolder and sorting them based on either the date of modification or the file name, allowing you to customize the retrieval process according to your preferences.
Get Last Output Video Path Input Parameters:
subfolder
The subfolder parameter allows you to specify a particular subdirectory within the main output directory of ComfyUI where the node should search for video files. This parameter is crucial for organizing your video outputs into different categories or projects, making it easier to locate specific files. The default value is an empty string, which means the node will look in the main output directory if no subfolder is specified. There are no minimum or maximum values for this parameter, as it is a string representing the folder path.
sort_by
The sort_by parameter determines the criteria used to sort the video files found in the specified subfolder. You can choose between two options: "Date" or "Name". Selecting "Date" will sort the files by their last modified time, with the newest files appearing first, which is useful when you want to access the most recently created video. Choosing "Name" will sort the files alphabetically in reverse order, which can be helpful if you organize your files with a naming convention that reflects their content or creation order. The default value for this parameter is "Date".
Get Last Output Video Path Output Parameters:
video_path
The video_path output parameter provides the file path of the most recent video file found in the specified subfolder, based on the sorting criteria you selected. This output is essential for quickly accessing the latest video output without manually navigating through directories. If no video files are found, the node will return an empty string, indicating that there are no available files in the specified location. This output helps streamline your workflow by providing direct access to your most recent video creations.
Get Last Output Video Path Usage Tips:
- To ensure you always access the latest video output, use the
sort_byparameter set to "Date", which will sort files by their last modified time. - Organize your video outputs into different subfolders based on projects or categories, and specify the
subfolderparameter accordingly to quickly locate specific files.
Get Last Output Video Path Common Errors and Solutions:
Folder does not exist
- Explanation: This error occurs when the specified subfolder does not exist within the main output directory.
- Solution: Verify that the subfolder name is correct and that it exists in the output directory. Create the subfolder if it does not exist.
No matching files found
- Explanation: This error indicates that no video files with the extensions
.webpor.mp4were found in the specified subfolder. - Solution: Ensure that the subfolder contains video files with the correct extensions. Check if the files are saved in the correct location.
Invalid sort_by option
- Explanation: This error occurs if an invalid value is provided for the
sort_byparameter. - Solution: Use only the allowed options "Date" or "Name" for the
sort_byparameter to ensure proper sorting of files.
