ComfyUI Node
Counter (GeN13)
Counter: advances once per queue and outputs a number within the set range. Resets by button, by an upstream change, or every hour or day.
Counter (GeN13)
- reset
- INT
- FLOAT
- STRING
◄run0►
◄modeincrement_reset_after_end►
◄start0.000►
◄end10.000►
◄step1.000►
◄hold1►
◄auto_resetoff►
CategoryGeN13/utils
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| run | INT | 00–1000000000 | Run count: adds 1 after each queue, not while bypassed. RESET sets it to 0, which returns to start. |
| mode | COMBO | increment_reset_after_end | Mode: count up or down; to_end stops at end, reset_after_end starts over from start after end. |
| start | FLOAT | 0.000-1000000000–1000000000 | Start: the first number output, and the number a reset returns to. |
| end | FLOAT | 10.000-1000000000–1000000000 | End: the last number in the to_end and reset_after_end modes. |
| step | FLOAT | 1.0000.000001–1000000000 | Step: amount added or subtracted each time; only the size counts, mode sets the direction. |
| hold | INT | 11–100000 | Hold: times each number is output before moving on; for nested loops. |
| auto_reset | COMBO | off | Auto reset: every hour returns to start on the hour, every day at the start of each day. |
| resetopt | * | Reset: returns to start whenever the upstream value changes; otherwise counting continues. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| INT | INT | Integer: the value rounded. |
| FLOAT | FLOAT | Decimal: the exact value. |
| STRING | STRING | Text: trailing zeros removed. |