Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-CustomNodeKit > Integer Setting (整数设置)

ComfyUI Node: Integer Setting (整数设置)

Class Name

IntegerSettingNode

Category
CustomNodes/Utils
Author
user2318 (Account age: 2574days)
Extension
ComfyUI-CustomNodeKit
Latest Updated
2026-07-16
Github Stars
0.05K

How to Install ComfyUI-CustomNodeKit

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

Integer Setting (整数设置) Description

Aligns integer inputs to specified arithmetic sequence for consistency and precision in numerical data.

Integer Setting (整数设置):

The IntegerSettingNode is a versatile tool designed to align input values to a specified arithmetic sequence, defined by a starting point and a step value. This node is particularly useful when you need to ensure that a given integer value conforms to a specific pattern or sequence, such as when working with grid-based systems or when precise numerical alignment is required. By automatically adjusting the input value to the nearest point in the sequence, the node simplifies the process of maintaining consistency and precision in numerical data. This functionality is beneficial for AI artists who need to manage numerical inputs in a structured and predictable manner, ensuring that values are always aligned to a defined sequence without manual calculation.

Integer Setting (整数设置) Input Parameters:

start

The start parameter defines the initial value of the arithmetic sequence. It serves as the baseline from which the sequence begins. This parameter can take any integer value ranging from -99,999,999 to 99,999,999, with a default value of 0. Adjusting the start value shifts the entire sequence, allowing you to control the starting point of the alignment process. This is particularly useful when you need to align values to a sequence that does not begin at zero.

step

The step parameter specifies the increment between consecutive values in the arithmetic sequence. It must be a positive integer, with a range from 1 to 99,999,999 and a default value of 1. The step value determines the spacing between each point in the sequence, allowing you to control the granularity of the alignment. A larger step value results in a coarser sequence, while a smaller value provides finer control over the alignment.

value

The value parameter is the integer input that you wish to align to the nearest point in the arithmetic sequence. This parameter accepts any integer within the range of -99,999,999 to 99,999,999, with a default value of 0. The node automatically adjusts this input to the closest sequence value, ensuring that it conforms to the defined pattern. This feature is particularly useful for maintaining consistency in numerical data, as it eliminates the need for manual calculations.

Integer Setting (整数设置) Output Parameters:

aligned_value

The aligned_value output represents the input value adjusted to the nearest point in the specified arithmetic sequence. This output is an integer that reflects the closest alignment to the sequence defined by the start and step parameters. The aligned_value is crucial for ensuring that numerical inputs conform to a predetermined pattern, providing a reliable and consistent output that can be used in further processing or analysis.

Integer Setting (整数设置) Usage Tips:

  • To ensure precise alignment, carefully choose the start and step values based on the specific requirements of your project. This will help maintain consistency across your numerical data.
  • Use the IntegerSettingNode when working with grid-based systems or any scenario where numerical precision and alignment are critical. This will simplify the process of managing numerical inputs and ensure they conform to a defined sequence.

Integer Setting (整数设置) Common Errors and Solutions:

Invalid step value

  • Explanation: The step parameter must be a positive integer greater than zero. If a non-positive value is provided, the node cannot compute the sequence correctly.
  • Solution: Ensure that the step value is set to a positive integer. Adjust the parameter to be within the valid range of 1 to 99,999,999.

Value out of range

  • Explanation: The value parameter must be within the specified range of -99,999,999 to 99,999,999. If the input exceeds this range, the node may not function as expected.
  • Solution: Verify that the value input is within the acceptable range. Adjust the input to ensure it falls within the specified limits.

Integer Setting (整数设置) Related Nodes

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

Integer Setting (整数设置)