ComfyUI  >  Nodes  >  Mikey Nodes >  File Name Prefix (Mikey)

ComfyUI Node: File Name Prefix (Mikey)

Class Name

FileNamePrefix

Category
Mikey/Meta
Author
bash-j (Account age: 4196 days)
Extension
Mikey Nodes
Latest Updated
6/15/2024
Github Stars
0.1K

How to Install Mikey Nodes

Install this extension via the ComfyUI Manager by searching for  Mikey Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Mikey Nodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

File Name Prefix (Mikey) Description

Generate customized filename prefixes for files to organize and manage outputs efficiently with structured naming conventions.

File Name Prefix (Mikey):

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.

File Name Prefix (Mikey) Input Parameters:

date

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'.

date_directory

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'.

custom_directory

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.

custom_text

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.

prompt

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.

extra_pnginfo

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.

File Name Prefix (Mikey) Output Parameters:

filename_prefix

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.

File Name Prefix (Mikey) Usage Tips:

  • Use the date parameter to include timestamps in your filenames, which can help you keep track of when files were created.
  • Utilize the custom_directory parameter to categorize files into specific folders, making it easier to organize and locate them later.
  • Add meaningful custom_text to your filenames to provide additional context or identifiers, making it easier to identify the content of each file.
  • Ensure that any text provided in the prompt or extra_pnginfo parameters is relevant and descriptive, as this information will be included in the filename prefix.

File Name Prefix (Mikey) Common Errors and Solutions:

Duplicate position numbers detected. Please ensure all position numbers are unique.

  • Explanation: This error occurs when there are duplicate position numbers in the configuration.
  • Solution: Ensure that all position numbers provided in the input parameters are unique to avoid conflicts.

Invalid characters in custom text or directory name.

  • Explanation: This error occurs when the custom text or directory name contains characters that are not allowed in filenames.
  • Solution: Ensure that the custom text and directory name do not contain any special characters such as <, >, :, ", /, \, |, ?, or *.

Total filename length exceeds 256 characters.

  • Explanation: This error occurs when the total length of the generated filename exceeds the maximum allowed length of 256 characters.
  • Solution: Ensure that the combined length of all elements in the filename prefix does not exceed 256 characters. If necessary, truncate the longest text elements to fit within the limit.

File Name Prefix (Mikey) Related Nodes

Go back to the extension to check out more related nodes.
Mikey Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.