Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate customized filename prefixes for files to organize and manage outputs efficiently with structured naming conventions.
The FileNamePrefix
node is designed to help you generate customized filename prefixes for your files, which can be particularly useful for organizing and managing your generated images or other outputs. This node allows you to create a structured and meaningful naming convention by incorporating elements such as dates, custom directories, and specific text. By using this node, you can ensure that your files are named consistently and descriptively, making it easier to locate and identify them later. The main goal of the FileNamePrefix
node is to provide a flexible and user-friendly way to create filename prefixes that suit your specific needs and preferences.
This parameter determines whether to include the current date and time in the filename prefix. When set to 'true'
, the node will append a timestamp in the format YYMMDDHHMMSS
to the filename prefix. This can be useful for keeping track of when files were created. The default value is 'false'
.
This parameter specifies whether to include a date-based directory in the filename prefix. When set to 'true'
, the node will create a directory named with the current date in the format YYMMDD
and include it in the filename prefix. This helps in organizing files by date. The default value is 'false'
.
This parameter allows you to specify a custom directory name to be included in the filename prefix. You can use this to categorize files into specific folders based on your own naming conventions. If provided, the custom directory name will be processed to replace any special characters and ensure it is valid for use in filenames.
This parameter lets you add custom text to the filename prefix. You can use this to include specific identifiers or descriptions in your filenames. The custom text will be sanitized to remove any invalid characters, ensuring it is safe to use in filenames. If no custom text is provided, this part of the prefix will be omitted.
This optional parameter can be used to include the prompt text in the filename prefix. If provided, the prompt text will be processed and sanitized to ensure it is valid for use in filenames. This can be useful for including descriptive information about the content of the file.
This optional parameter allows you to include additional metadata in the filename prefix. If provided, the extra metadata will be processed and sanitized to ensure it is valid for use in filenames. This can be useful for including extra information about the file's creation or content.
The filename_prefix
output parameter provides the generated filename prefix based on the input parameters. This prefix can include elements such as the current date, a custom directory, custom text, and optional metadata. The resulting prefix is a string that can be used to name files in a consistent and descriptive manner, helping you organize and manage your files more effectively.
date
parameter to include timestamps in your filenames, which can help you keep track of when files were created.custom_directory
parameter to categorize files into specific folders, making it easier to organize and locate them later.custom_text
to your filenames to provide additional context or identifiers, making it easier to identify the content of each file.prompt
or extra_pnginfo
parameters is relevant and descriptive, as this information will be included in the filename prefix.<
, >
, :
, "
, /
, \
, |
, ?
, or *
.© Copyright 2024 RunComfy. All Rights Reserved.