Visit ComfyUI Online for ready-to-use ComfyUI environment
Utility tool for incrementing numerical values in ComfyUI, streamlining workflows with large integer handling.
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.
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.
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.
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.
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.
max
parameter to 0, allowing the current_index
to increase without wrapping around.max
parameter to the desired upper limit to ensure the sequence resets after reaching this value.current_index
or max
valuecurrent_index
or max
parameter is set to a value outside the permissible range.current_index
and max
are within the range of 0 to 18,446,744,073,709,551,615.current_index
or max
is not an integer.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.