Nodes/ComfyUI-GeN13/Counter (GeN13)
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.

By heigen13·Created 3 days ago·Updated about 21 hours ago· 1
Counter (GeN13)
  • reset
  • INT
  • FLOAT
  • STRING
◄run0►
◄modeincrement_reset_after_end►
◄start0.000►
◄end10.000►
◄step1.000►
◄hold1►
◄auto_resetoff►
CategoryGeN13/utils

Inputs (8)

NameTypeDefaultDescription
runINT00–1000000000Run count: adds 1 after each queue, not while bypassed. RESET sets it to 0, which returns to start.
modeCOMBOincrement_reset_after_endMode: count up or down; to_end stops at end, reset_after_end starts over from start after end.
startFLOAT0.000-1000000000–1000000000Start: the first number output, and the number a reset returns to.
endFLOAT10.000-1000000000–1000000000End: the last number in the to_end and reset_after_end modes.
stepFLOAT1.0000.000001–1000000000Step: amount added or subtracted each time; only the size counts, mode sets the direction.
holdINT11–100000Hold: times each number is output before moving on; for nested loops.
auto_resetCOMBOoffAuto 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)

NameTypeDescription
INTINTInteger: the value rounded.
FLOATFLOATDecimal: the exact value.
STRINGSTRINGText: trailing zeros removed.