Nodes/Comfyroll Studio/πŸ”’ CR Index Increment
ComfyUI Node Runs on cloud

πŸ”’ CR Index Increment

Carrying an Index and Its Step Together as Two Wires

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,296
πŸ”’ CR Index Increment
    • index
    • interval
    • show_help
    β—„index1β–Ί
    β—„interval1β–Ί

    CR Index Increment is part of Comfyroll's small family of index utilities, and its job is narrow: expose an index and an interval as two separate typed outputs, both mirroring the widgets you set on the node, so downstream math nodes can consume either one independently instead of you duplicating the same numbers in multiple widgets across your graph.

    How it works. Two required fields, index (-10000 to 10000) and interval (-10000 to 10000), and two matching outputs carrying those same values forward as wires. The actual "increment" behavior - the index climbing on its own from one run to the next - comes from ComfyUI's built-in widget feature rather than anything internal to this node: right-click the index widget, set "control after generate" to Increment, and ComfyUI bumps it after every queued run. What this node adds on top of that native behavior is giving you interval as its own separate output, so a downstream node that cares about the step size (say, something computing where the next index boundary falls) doesn't need its own copy of that number.

    Where this earns its keep. In a chain of index-family nodes - feeding into CR Index Multiply to scale the count, or CR Index Reset to snap it back to a known point under manual control - having both index and interval available as separate wires means each downstream node can pull exactly the value it needs without you re-typing the interval into three different widgets and risking them drifting out of sync.

    Inputs and outputs that matter. index and interval in (both required integers); index, interval, 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 involved.

    Troubleshooting. If you're expecting this node to auto-advance on its own and it isn't, remember the increment behavior lives in ComfyUI's widget settings, not in the node's code - check "control after generate" on the index widget before assuming something's broken. Beyond that, the usual Comfyroll-wide gotcha applies: the pack registers all its nodes from one shared file, and real reports on r/comfyui document a single broken import (Failed to load Graphics nodes / Failed to load Utility nodes) taking out the entire node set at once, not just the piece that failed. If Comfyroll nodes go missing after install, redo it with a clean git clone rather than chasing pip.

    Category🧩 Comfyroll Studio/πŸ› οΈ Utils/πŸ”’ Index

    Inputs (2)

    NameTypeDefaultDescription
    indexINT1-10000–10000β€”
    intervalINT1-10000–10000β€”

    Outputs (3)

    NameTypeDescription
    indexINTβ€”
    intervalINTβ€”
    show_helpSTRINGβ€”