ComfyUI > Nodes > ComfyUI > Int

ComfyUI Node: Int

Class Name

PrimitiveInt

Category
utils/primitive
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

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

Handle integer values in node-based AI art projects, ensuring data integrity and range validation.

Int:

The PrimitiveInt node is designed to handle integer values within a node-based system, providing a straightforward way to work with whole numbers in your AI art projects. This node is particularly useful when you need to define or manipulate integer values, such as setting parameters, counters, or indices in your workflows. By encapsulating integer operations, it ensures that the values remain within the specified range, preventing errors that might arise from invalid inputs. The node's primary function is to accept an integer input and return it unchanged, making it a reliable component for maintaining integer data integrity throughout your project.

Int Input Parameters:

value

The value parameter is the core input for the PrimitiveInt node, representing the integer value you wish to process. This parameter accepts any integer within the range of -sys.maxsize to sys.maxsize, which is the maximum range supported by the system's architecture. The value parameter is crucial as it directly influences the node's output, ensuring that the integer data is correctly passed through the node. The parameter is designed to be flexible, allowing for dynamic adjustments and control after generation, which is particularly useful in iterative or conditional workflows.

Int Output Parameters:

INT

The output of the PrimitiveInt node is an integer, denoted as INT. This output is the same integer value that was input into the node, ensuring that the data remains consistent and unchanged. The primary purpose of this output is to provide a reliable integer value that can be used in subsequent nodes or operations within your workflow. By maintaining the integrity of the integer data, this output ensures that your project can accurately perform calculations, comparisons, or any other operations that require integer inputs.

Int Usage Tips:

  • Use the PrimitiveInt node to define static integer values that can be reused across multiple nodes, ensuring consistency in your workflow.
  • Leverage the control-after-generate feature to dynamically adjust integer values based on the results of previous operations, allowing for more flexible and adaptive workflows.

Int Common Errors and Solutions:

Invalid integer range

  • Explanation: The input integer is outside the allowable range of -sys.maxsize to sys.maxsize.
  • Solution: Ensure that the integer value you input falls within the specified range. If necessary, adjust your calculations or logic to produce a valid integer.

Non-integer input

  • Explanation: The input provided is not an integer, which the node cannot process.
  • Solution: Verify that the input is a valid integer. If you are using a variable or expression, ensure it evaluates to an integer before passing it to the node.

Int Related Nodes

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