ComfyUI > Nodes > ComfyUI-LogicUtils > Counter Float

ComfyUI Node: Counter Float

Class Name

CounterFloat

Category
Logic Gates
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

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

Counter Float Description

Generates a dynamic floating-point counter, incrementing by a user-defined step value.

Counter Float:

The CounterFloat node is designed to generate a floating-point counter that increments by a specified step value each time it is executed. This node is particularly useful in scenarios where you need a sequential series of numbers that can be adjusted dynamically. It provides a simple yet effective way to manage and manipulate numerical sequences, making it an essential tool for tasks that require precise control over numerical increments. The node's primary function is to maintain a counter that starts from a user-defined value and increases by a specified step, offering flexibility and control over the counting process. This can be especially beneficial in creative coding and generative art projects where numerical sequences play a crucial role.

Counter Float Input Parameters:

start

The start parameter defines the initial value of the counter. It is a floating-point number that sets the starting point for the sequence. The default value is 0.0, and it can range from -(2^63-1) to (2^63-1). This parameter is crucial as it determines the baseline from which the counter begins its increments.

reset

The reset parameter is a boolean that, when set to True, resets the counter back to the start value. The default setting is False, meaning the counter will continue from its current value unless explicitly reset. This parameter is useful for restarting the sequence without having to reinitialize the node.

step

The step parameter specifies the increment value for the counter. It is a floating-point number that determines how much the counter increases with each execution. The default value is 1.0, and it can range from -(2^63-1) to (2^63-1). This parameter allows you to control the rate of increase, providing flexibility in how the sequence progresses.

Counter Float Output Parameters:

FLOAT

The output of the CounterFloat node is a single floating-point number representing the current value of the counter. This output reflects the cumulative result of the starting value and the applied increments, providing a dynamic numerical sequence that can be used in various applications. The output is essential for tracking the progression of the counter and utilizing it in subsequent operations or visualizations.

Counter Float Usage Tips:

  • To create a simple sequence of numbers, set the start parameter to your desired initial value and adjust the step parameter to control the increment size.
  • Use the reset parameter to restart the sequence from the beginning whenever needed, which is particularly useful in iterative processes or loops.

Counter Float Common Errors and Solutions:

Counter not incrementing as expected

  • Explanation: This may occur if the step parameter is set to 0 or if the reset parameter is unintentionally set to True.
  • Solution: Ensure that the step parameter is set to a non-zero value and verify that the reset parameter is set to False unless a reset is intended.

Counter resets unexpectedly

  • Explanation: The counter might reset if the reset parameter is accidentally set to True.
  • Solution: Check the reset parameter and ensure it is set to False if you do not want the counter to reset.

Counter Float Related Nodes

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

Counter Float