ComfyUI > Nodes > comfyui_AcademiaSD > Padded File Name v1.2.1

ComfyUI Node: Padded File Name v1.2.1

Class Name

PaddedFileName

Category
ComfyUI_AcademiaSD/Utilities/Counters
Author
AcademiaSD (Account age: 683days)
Extension
comfyui_AcademiaSD
Latest Updated
2026-04-05
Github Stars
0.03K

How to Install comfyui_AcademiaSD

Install this extension via the ComfyUI Manager by searching for comfyui_AcademiaSD
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfyui_AcademiaSD 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

Padded File Name v1.2.1 Description

Generates filenames with a prefix and padded numbers for consistent, sortable naming in sequences.

Padded File Name v1.2.1:

The PaddedFileName node is designed to generate systematically formatted filenames by combining a user-defined prefix with a padded numerical sequence. This node is particularly useful in scenarios where you need to create a series of files with consistent naming conventions, such as when saving frames from a video or iterations of an image processing task. By allowing you to specify a loop count and a multiplier, the node calculates a number that is then padded with leading zeros to ensure uniform length across filenames. This ensures that files are easily sortable and maintain a clear order, which is crucial for managing large datasets or sequences. The node's primary function is to streamline the process of generating filenames that are both descriptive and organized, enhancing workflow efficiency in projects that involve iterative or batch processing.

Padded File Name v1.2.1 Input Parameters:

loop_count

The loop_count parameter represents the current iteration or sequence number that you want to include in the filename. It is an integer value that starts from a minimum of 0 and can be incremented by a step of 1. The default value is set to 0. This parameter is crucial as it determines the base number that will be multiplied and padded to form part of the filename, allowing you to track the sequence of files generated.

multiplier

The multiplier parameter is an integer that defines the factor by which the loop_count is multiplied to calculate the final number used in the filename. It has a minimum value of 1 and a default value of 1, with increments of 1. This parameter allows you to adjust the numerical sequence in your filenames, providing flexibility in how the sequence progresses, which can be useful for creating gaps or specific numbering schemes in your file naming.

filename_prefix

The filename_prefix parameter is a string that serves as the initial part of the filename. It is a single-line text input with a default value of "frame". This prefix is combined with the padded number to create the final filename. By customizing this prefix, you can ensure that your filenames are descriptive and relevant to the content or context of the files, making it easier to identify and manage them later.

Padded File Name v1.2.1 Output Parameters:

formatted_filename

The formatted_filename output is a string that represents the complete filename generated by the node. It combines the filename_prefix with a padded numerical sequence derived from the loop_count and multiplier. The number is padded to five digits, ensuring consistent filename lengths, which aids in maintaining order and readability in file directories. This output is essential for tasks that require systematic file naming, as it provides a ready-to-use filename that adheres to the specified format.

Padded File Name v1.2.1 Usage Tips:

  • Use a meaningful filename_prefix to make it easier to identify the content or purpose of the files at a glance.
  • Adjust the multiplier to create specific numbering patterns or to introduce gaps between file numbers, which can be useful for organizing files into groups or categories.
  • Ensure that the loop_count is incremented appropriately in your workflow to maintain the correct sequence of filenames.

Padded File Name v1.2.1 Common Errors and Solutions:

Invalid multiplier value

  • Explanation: The multiplier parameter must be an integer greater than or equal to 1. If a value less than 1 is provided, the node may not function as expected.
  • Solution: Ensure that the multiplier is set to a valid integer value of 1 or higher.

Filename prefix too long

  • Explanation: If the filename_prefix is excessively long, it may result in filenames that exceed the maximum allowable length for your operating system.
  • Solution: Use a concise filename_prefix to avoid exceeding filename length limits, ensuring compatibility across different systems.

Padded File Name v1.2.1 Related Nodes

Go back to the extension to check out more related nodes.
comfyui_AcademiaSD
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.