ComfyUI > Nodes > ComfyUI-PromptUtilities > Random Preset (Advanced)

ComfyUI Node: Random Preset (Advanced)

Class Name

PromptUtilitiesRandomPresetAdvanced

Category
PromptUtilities
Author
nkchocoai (Account age: 825days)
Extension
ComfyUI-PromptUtilities
Latest Updated
2025-03-30
Github Stars
0.03K

How to Install ComfyUI-PromptUtilities

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

Random Preset (Advanced) Description

Generates random prompts with advanced presets for diverse AI art creation.

Random Preset (Advanced):

The PromptUtilitiesRandomPresetAdvanced node is designed to enhance your creative workflow by providing a sophisticated mechanism for generating random prompts based on advanced preset configurations. This node is particularly beneficial for AI artists who wish to explore a wide range of creative possibilities without manually crafting each prompt. By leveraging advanced preset management, it allows you to generate both positive and negative prompts, along with additional parameters such as Lora names and strength values, which can be crucial for fine-tuning AI-generated art. The node's primary function is to parse and return a comprehensive set of parameters from a randomly selected preset, enabling a more dynamic and varied output that can inspire new artistic directions.

Random Preset (Advanced) Input Parameters:

filename

This parameter requires a list of filenames from which the node will select a preset. It is crucial as it determines the pool of presets available for random selection. The filenames should correspond to preset files managed by the PresetManagerAdvanced. There are no specific minimum or maximum values, but the list should be populated with valid preset filenames to function correctly.

choice_preset

The choice_preset parameter is a string input that allows you to specify the preset configuration in a JSON format. This input is not multiline and does not support dynamic prompts, ensuring that the preset is parsed consistently. It plays a vital role in defining the structure and content of the prompts generated by the node.

seed

The seed parameter is an integer that influences the randomness of the preset selection process. It has a default value of 0 and can range from 0 to 0xffffffffffffffff. By setting a specific seed, you can achieve reproducible results, which is useful for testing and refining your creative outputs.

Random Preset (Advanced) Output Parameters:

positive prompt

This output provides the positive prompt generated from the selected preset. It is a crucial component for guiding the AI in generating desired artistic elements.

negative prompt

The negative prompt output serves to specify elements that should be avoided in the AI-generated art, helping to refine and focus the creative output.

lora name

This output returns the name of the Lora model associated with the selected preset, which can be used to apply specific stylistic or thematic influences to the generated art.

strength model

The strength model output is a float value that indicates the intensity or influence of the model on the generated art, allowing for nuanced control over the final output.

strength clip

Similar to the strength model, the strength clip output is a float value that determines the strength of the clip model, providing additional control over the artistic style and content.

lora stack

The lora stack output is a complex data structure that contains a stack of Lora models applied to the preset, offering a layered approach to style and theme application.

Random Preset (Advanced) Usage Tips:

  • Ensure that your preset filenames are correctly listed and accessible to maximize the variety of prompts generated.
  • Experiment with different seed values to explore a wider range of creative outputs and find the most inspiring results.
  • Utilize the positive and negative prompts to guide the AI towards specific artistic goals while avoiding undesired elements.

Random Preset (Advanced) Common Errors and Solutions:

Invalid filename list

  • Explanation: The node cannot find or access the preset filenames provided.
  • Solution: Verify that the filenames are correct and that the files are located in the expected directory.

JSON parsing error in choice_preset

  • Explanation: The choice_preset string is not formatted correctly as JSON.
  • Solution: Ensure that the JSON structure is valid and correctly formatted before inputting it into the node.

Seed value out of range

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Check that the seed value is within the range of 0 to 0xffffffffffffffff and adjust if necessary.

Random Preset (Advanced) Related Nodes

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