ComfyUI  >  Nodes  >  wlsh_nodes >  Build Filename String (WLSH)

ComfyUI Node: Build Filename String (WLSH)

Class Name

Build Filename String (WLSH)

Category
WLSH Nodes/text
Author
wallish77 (Account age: 2229 days)
Extension
wlsh_nodes
Latest Updated
6/19/2024
Github Stars
0.1K

How to Install wlsh_nodes

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

Build Filename String (WLSH) Description

Automate dynamic filename creation for AI-generated content using tokens like timestamps and model names with WLSH node.

Build Filename String (WLSH):

The Build Filename String (WLSH) node is designed to help you create dynamic and meaningful filenames for your AI-generated content. This node allows you to construct filenames using various tokens such as timestamps, model names, seeds, and counters, ensuring that each file is uniquely identifiable and organized. By leveraging this node, you can automate the naming process, making it easier to manage and retrieve your files. The primary goal of this node is to provide a flexible and customizable way to generate filenames that reflect important metadata, enhancing your workflow efficiency and file management.

Build Filename String (WLSH) Input Parameters:

filename

This parameter is a string that serves as the base format for your filename. You can include tokens like %time, %model, %seed, and %counter within this string to dynamically insert the corresponding values. For example, a filename format like image_%time_%seed will be replaced with the current timestamp and seed value. This parameter is required and does not support multiline input.

modelname

This optional string parameter allows you to specify the name of the model used in generating the content. If included in the filename format using the %model token, it will be replaced with the value of this parameter. The default value is an empty string, and it does not support multiline input.

seed

This optional integer parameter represents the seed value used in the generation process. Including the %seed token in your filename format will replace it with this seed value. The default value is 0, with a minimum of 0 and a maximum of 0xffffffffffffffff.

counter

This optional parameter is an integer that can be used to keep track of the number of files generated. Including the %counter token in your filename format will replace it with this counter value. The default value is 0.

time_format

This optional string parameter defines the format of the timestamp that will replace the %time token in your filename format. The default format is %Y-%m-%d-%H%M%S, which corresponds to a timestamp like 2023-10-05-153045. This parameter does not support multiline input.

Build Filename String (WLSH) Output Parameters:

filename

The output parameter is a string that represents the fully constructed filename based on the provided format and input values. This filename will include the dynamically replaced tokens, making it unique and informative. The generated filename helps in organizing and identifying files easily.

Build Filename String (WLSH) Usage Tips:

  • Use descriptive tokens in your filename format to include important metadata like timestamps, model names, and seed values, which can help in better organizing and retrieving your files.
  • Customize the time_format parameter to match your preferred timestamp format, ensuring consistency across all generated filenames.
  • Utilize the counter parameter to keep track of the number of files generated in a sequence, which can be particularly useful for batch processing.

Build Filename String (WLSH) Common Errors and Solutions:

Invalid time format

  • Explanation: The time_format parameter provided is not a valid format string for the timestamp.
  • Solution: Ensure that the time_format string follows the correct formatting rules for Python's strftime method. Refer to the Python documentation for valid format codes.

Missing required filename parameter

  • Explanation: The filename parameter is required but was not provided.
  • Solution: Make sure to include a valid string for the filename parameter when using the node.

Seed value out of range

  • Explanation: The seed parameter value is outside the acceptable range.
  • Solution: Ensure that the seed value is within the range of 0 to 0xffffffffffffffff.

Empty filename after processing

  • Explanation: The processed filename resulted in an empty string.
  • Solution: Check the filename format and ensure that it includes valid tokens or static text to avoid an empty result.

Build Filename String (WLSH) Related Nodes

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