π’ CR Index Reset
Carry a Counter's Restart Value Alongside It
- index
- reset_to
- show_help
The last of Comfyroll's four core index utilities, CR Index Reset pairs an index with a reset_to value and exposes both as separate outputs - the small piece of infrastructure you need when a counter chain needs to be manually snapped back to a known starting point.
How it works. Two required integer inputs, index (0β10000, default 1) and reset_to (0β10000, default 1), and two matching outputs carrying those same values forward. There's no condition or trigger input in the schema - no boolean that says "reset now" - so read this node as exposing both values as independent wires rather than performing a conditional reset by itself. In practice that means you use it by wiring reset_to wherever you need a known starting number (say, back into another node's index input when you want to restart a count), rather than expecting this node to watch for some event and reset automatically.
Where it fits. If you're chaining CR Index, CR Index Increment, and CR Index Multiply to build up a running counter across a batch or animation, this node is what you reach for when you need to deliberately restart that count - for example, going back to frame 0 of a new animation segment, or resetting a batch position between two separate runs of a workflow, without retyping the starting number into two different widgets and having them drift apart.
Inputs and outputs that matter. index and reset_to in (both required integers); index, reset_to, and show_help out.
Install. ComfyUI Manager: search "Comfyroll Studio", install, restart. Manually: cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, restart. No models needed.
Troubleshooting. If you're expecting this node to detect a condition and reset a counter on its own, that's not what the exposed inputs support - there's no trigger socket here, just two integers passed through as separate wires, so any "reset when X happens" logic needs to live elsewhere in your graph (feeding reset_to into the target manually, or gating it with a switch node). Beyond that, the pack-wide caveat is the same as every other Comfyroll node: the pack registers its entire node set from one shared file, and real reports on r/comfyui show a single broken import (Failed to load Graphics nodes / Failed to load Utility nodes) wiping every node out at once. If Comfyroll nodes are missing after install, redo it with a clean git clone.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| index | INT | 10β10000 | β |
| reset_to | INT | 10β10000 | β |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| index | INT | β |
| reset_to | INT | β |
| show_help | STRING | β |