ComfyUI  >  Nodes  >  Mikey Nodes >  SR Int Prompt Input (Mikey)

ComfyUI Node: SR Int Prompt Input (Mikey)

Class Name

SRIntPromptInput

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

SR Int Prompt Input (Mikey) Description

Facilitates integer value integration for AI art prompts.

SR Int Prompt Input (Mikey):

The SRIntPromptInput node is designed to facilitate the integration of integer values into your AI art generation workflow. This node allows you to input an integer value and seamlessly incorporate it into the prompt metadata, ensuring that specific integer parameters are accurately reflected in the generated art. This can be particularly useful for scenarios where numerical values need to be dynamically adjusted and embedded within the prompt, enhancing the flexibility and precision of your creative process.

SR Int Prompt Input (Mikey) Input Parameters:

input_int

The input_int parameter is a required integer input that you need to provide. This parameter represents the integer value that you want to embed into the prompt metadata. The value of input_int will be converted to a string and stored in the prompt's metadata under the key sr_val. This allows for dynamic adjustments and precise control over numerical values within your prompts. There are no specific minimum, maximum, or default values provided, but it is essential to ensure that the integer value is relevant to your creative needs.

unique_id

The unique_id parameter is a hidden input that uniquely identifies the prompt. This ID is used to locate the specific prompt metadata where the integer value will be stored. It ensures that the correct prompt is targeted for the embedding of the integer value.

extra_pnginfo

The extra_pnginfo parameter is a hidden input that contains additional metadata related to the prompt. This information is used internally by the node to manage and store the integer value within the prompt's metadata.

prompt

The prompt parameter is a hidden input that represents the prompt metadata structure. This parameter is used to access and modify the prompt's metadata, specifically to store the integer value under the key sr_val.

SR Int Prompt Input (Mikey) Output Parameters:

output_int

The output_int parameter is the output of the node, which returns the same integer value that was input. This output allows you to verify that the correct integer value has been processed and embedded into the prompt metadata. It ensures that the integer value is accurately reflected in the output, providing a straightforward way to confirm the node's functionality.

SR Int Prompt Input (Mikey) Usage Tips:

  • Ensure that the input_int value is relevant to the specific aspect of the prompt you are targeting. This will help in achieving the desired effect in the generated art.
  • Use the unique_id to accurately target the correct prompt metadata, especially when working with multiple prompts or complex workflows.

SR Int Prompt Input (Mikey) Common Errors and Solutions:

"KeyError: 'inputs'"

  • Explanation: This error occurs when the specified unique_id does not match any existing prompt metadata, leading to a failure in locating the inputs key.
  • Solution: Verify that the unique_id provided is correct and corresponds to an existing prompt. Ensure that the prompt metadata structure includes the inputs key.

"TypeError: 'NoneType' object is not subscriptable"

  • Explanation: This error happens when the prompt parameter is None or not properly initialized, leading to an attempt to subscript a NoneType object.
  • Solution: Ensure that the prompt parameter is correctly initialized and contains the necessary metadata structure before passing it to the node.

SR Int Prompt Input (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.