ComfyUI > Nodes > ComfyUI-Addoor > Incrementer 🪴

ComfyUI Node: Incrementer 🪴

Class Name

Incrementer 🪴

Category
🌻 Addoor/Utilities
Author
ADDOOR (Account age: 2884days)
Extension
ComfyUI-Addoor
Latest Updated
2025-01-24
Github Stars
0.03K

How to Install ComfyUI-Addoor

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

Incrementer 🪴 Description

Utility tool for incrementing numerical values in ComfyUI, streamlining workflows with large integer handling.

Incrementer 🪴:

The Incrementer 🪴 node is a utility tool designed to facilitate the process of incrementing numerical values within the ComfyUI framework. Its primary purpose is to manage and manipulate integer values, making it particularly useful for tasks that require sequential or cyclical number generation. This node is part of the ComfyUI FofrToolkit, which is an experimental toolkit aimed at enhancing the functionality of ComfyUI. By providing a straightforward method to increment numbers, the Incrementer 🪴 node helps streamline workflows that involve iterative processes, such as generating unique identifiers or managing counters. Its ability to handle large integer values ensures that it can be applied to a wide range of scenarios, from simple counting tasks to more complex operations requiring precise control over numerical sequences.

Incrementer 🪴 Input Parameters:

current_index

The current_index parameter is an integer that represents the starting point for the increment operation. It is a required input and serves as the base value that will be incremented. The default value is 0, and it can range from 0 to 18,446,744,073,709,551,615 (0xFFFFFFFFFFFFFFFF). This parameter is crucial as it determines the initial value from which the incrementing process begins, and it can be adjusted to suit the specific needs of your task.

max

The max parameter is an optional integer that defines the upper limit for the increment operation. By default, it is set to 10, with a permissible range from 0 to 18,446,744,073,709,551,615. When specified, the incremented value will wrap around to 0 once it exceeds this maximum value, effectively creating a cyclical sequence. This parameter is particularly useful for scenarios where you need to maintain values within a specific range, such as looping through a set of indices.

Incrementer 🪴 Output Parameters:

INT

The INT output is the result of the increment operation, represented as an integer. This value reflects the incremented current_index, adjusted according to the max parameter if specified. It is the primary output of the node, providing the updated numerical value that can be used in subsequent operations or processes.

STRING

The STRING output is a string representation of the incremented integer value. This output is useful for scenarios where the numerical result needs to be displayed or logged in a textual format, ensuring compatibility with systems or components that require string inputs.

Incrementer 🪴 Usage Tips:

  • To create a simple counter that increments indefinitely, set the max parameter to 0, allowing the current_index to increase without wrapping around.
  • For applications requiring cyclical sequences, such as rotating through a list of items, set the max parameter to the desired upper limit to ensure the sequence resets after reaching this value.

Incrementer 🪴 Common Errors and Solutions:

ValueError: Invalid current_index or max value

  • Explanation: This error occurs when the current_index or max parameter is set to a value outside the permissible range.
  • Solution: Ensure that both current_index and max are within the range of 0 to 18,446,744,073,709,551,615.

TypeError: Non-integer input

  • Explanation: This error is raised when the input provided for current_index or max is not an integer.
  • Solution: Verify that the inputs for these parameters are integers and adjust them accordingly if they are not.

Incrementer 🪴 Related Nodes

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