ComfyUI > Nodes > DJZ-Nodes > String Painter V2

ComfyUI Node: String Painter V2

Class Name

StringPainterV2

Category
painting
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

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

String Painter V2 Description

Versatile node for generating hex strings with seed value, supporting 16-bit and 32-bit, offering increment and random modes.

String Painter V2:

StringPainterV2 is a versatile node designed to generate hexadecimal strings based on a given seed value, offering support for both 16-bit and 32-bit hex strings. This node is particularly useful for artists and developers who need to create unique identifiers or color codes in a systematic or random manner. It provides two modes of operation: increment and random, allowing you to either generate a sequence of hex values or randomize them within a specified range. Additionally, StringPainterV2 outputs the seed used for each generation, which can be beneficial for reproducing results or debugging. This node is an enhancement over its predecessor, offering more flexibility and control over the generation process, making it an essential tool for creative coding and digital art projects.

String Painter V2 Input Parameters:

seed

The seed parameter is an integer that serves as the starting point for generating the hex string. It influences the initial value from which the hex string is derived. The seed can range from 0 to 4,294,967,295 (0xFFFFFFFF), with a default value of 0. Using different seeds will result in different hex outputs, which is useful for creating unique identifiers or ensuring variability in generated results.

bits

The bits parameter determines the bit size of the hex string, with options of either "16" or "32". This choice affects the length and range of the generated hex string. A 16-bit hex string will be shorter and have a smaller range compared to a 32-bit hex string. The default setting is "16", which is suitable for most applications unless a larger range is required.

mode

The mode parameter specifies the method of hex string generation, offering "increment" and "random" as options. In "increment" mode, the hex string is generated sequentially based on the seed, while in "random" mode, the seed is randomized within a specified range. The default mode is "increment", which is ideal for predictable sequences, whereas "random" is useful for generating non-repetitive values.

count

The count parameter is an integer that defines how many hex strings to generate in one execution. It ranges from 1 to 100, with a default value of 1. This parameter is useful when multiple hex strings are needed at once, such as when generating a palette of colors or a series of unique identifiers.

random_min

The random_min parameter sets the minimum value for the random seed range when the mode is set to "random". It can range from 0 to 4,294,967,295 (0xFFFFFFFF), with a default value of 0. This parameter allows you to control the lower bound of the randomization process, ensuring that generated values meet specific criteria.

random_max

The random_max parameter sets the maximum value for the random seed range when the mode is set to "random". It can range from 0 to 4,294,967,295 (0xFFFFFFFF), with a default value of 4,294,967,295. This parameter allows you to control the upper bound of the randomization process, providing flexibility in the range of possible outputs.

String Painter V2 Output Parameters:

hex_string

The hex_string output is a string representing the generated hexadecimal value. This output is the primary result of the node's operation, providing a hex code that can be used for various purposes, such as color coding, unique identifiers, or data representation. The format and length of the hex string depend on the bits parameter.

used_seed

The used_seed output is an integer that indicates the seed value used in the generation process. This output is crucial for understanding and reproducing the results, especially when using the "random" mode. It allows you to track the exact seed that led to the generated hex string, facilitating debugging and consistency in repeated operations.

String Painter V2 Usage Tips:

  • To generate a sequence of hex values, use the "increment" mode with a specific seed and adjust the count parameter to the desired number of values.
  • For non-repetitive hex values, switch to "random" mode and set a custom range using random_min and random_max to control the variability and ensure the values meet your criteria.
  • Utilize the used_seed output to document and reproduce specific results, especially when working on projects that require consistency across different sessions.

String Painter V2 Common Errors and Solutions:

Unsupported bit size

  • Explanation: This error occurs when a bit size other than "16" or "32" is specified.
  • Solution: Ensure that the bits parameter is set to either "16" or "32" as these are the only supported options.

Invalid mode

  • Explanation: This error arises when a mode other than "increment" or "random" is selected.
  • Solution: Verify that the mode parameter is set to either "increment" or "random" to avoid this error.

Seed out of range

  • Explanation: This error happens when the seed value is outside the allowable range of 0 to 4,294,967,295.
  • Solution: Adjust the seed parameter to ensure it falls within the valid range.

String Painter V2 Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.