ComfyUI > Nodes > Comfy-Pack > Int Input

ComfyUI Node: Int Input

Class Name

CPackInputInt

Category
ComfyPack/input
Author
Frost Ming (Account age: 2167days)
Extension
Comfy-Pack
Latest Updated
2025-03-07
Github Stars
0.12K

How to Install Comfy-Pack

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

Int Input Description

Facilitates integer input with constraints for ComfyUI numerical parameters in computational workflows.

Int Input:

The CPackInputInt node is designed to facilitate the input of integer values within the ComfyUI framework, providing a straightforward way to specify numerical parameters that can be used in various computational workflows. This node is particularly useful when you need to define integer values with specific constraints, such as minimum and maximum limits, ensuring that the input adheres to the expected range. By offering a default value and the ability to set boundaries, CPackInputInt helps maintain data integrity and prevents errors that could arise from invalid inputs. This node is essential for scenarios where precise numerical input is required, making it a valuable tool for AI artists who need to control and fine-tune their creative processes with numerical parameters.

Int Input Input Parameters:

value

The value parameter represents the integer input that you wish to provide to the node. It serves as the primary input and is crucial for the node's operation, as it determines the numerical value that will be processed. The default value for this parameter is 0, which means that if no specific value is provided, the node will use zero as the input. This parameter is required, and its impact on the node's execution is direct, as it defines the integer value that will be returned by the node.

min

The min parameter sets the minimum allowable value for the value parameter. It ensures that the input does not fall below a specified threshold, which is important for maintaining the validity of the data. The default value for min is -sys.maxsize, effectively allowing any negative integer unless otherwise specified. This parameter is optional, and its presence helps prevent errors that could occur if the input value is too low for the intended application.

max

The max parameter defines the maximum allowable value for the value parameter. Similar to the min parameter, it ensures that the input does not exceed a specified upper limit, which is crucial for applications that require bounded numerical inputs. The default value for max is sys.maxsize, allowing any positive integer unless a specific maximum is set. This parameter is optional and helps safeguard against errors that might arise from excessively large input values.

Int Input Output Parameters:

value

The value output parameter is the integer value that the node returns after processing the input. It reflects the input value parameter, potentially constrained by the min and max parameters if they are specified. This output is essential for subsequent nodes or processes that require a validated integer input, ensuring that the data passed along the workflow is within the expected range and format.

Int Input Usage Tips:

  • Ensure that the value parameter is set within the desired range by adjusting the min and max parameters to prevent unexpected results or errors.
  • Use the min and max parameters to enforce constraints on the input value, which can be particularly useful in scenarios where specific numerical limits are required for the workflow.

Int Input Common Errors and Solutions:

Value must be greater than or equal to <min>

  • Explanation: This error occurs when the value parameter is set below the specified min parameter.
  • Solution: Adjust the value parameter to be equal to or greater than the min parameter to resolve this error.

Value must be less than or equal to <max>

  • Explanation: This error arises when the value parameter exceeds the specified max parameter.
  • Solution: Modify the value parameter to be equal to or less than the max parameter to fix this issue.

Int Input Related Nodes

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