Offset Number
Add two integers, the boring way
- INT
This node adds two integers. That's it. number + offset, one output. It's in the pack because the author needed "previous frame number" in the older workflows - you'd take the current frame counter and offset it by −1 to get the frame before - and rather than write a one-off in every graph, it shipped as a node. It's a two-widget calculator with a WarpFusion category label on it.
You'll use it exactly where the name implies: any time you need a frame counter shifted by a constant. Current frame minus one for a previous-frame lookup, plus one for a lookahead, or nudging a loop range. The inputs are number (default 0) and offset (default 0), both INTs, and the output is their sum as an INT. There's no overflow protection worth mentioning and no rounding - it's +, full stop.
Before you build too much on it, know that most of what this node was created for now has a better home. LoadFramePairFromDataset loads current and previous frame together, so the classic "offset by −1" pattern is usually redundant - you don't need to derive the previous frame number at all. And for any non-trivial math, ComfyUI's core already has Primitive/IntMath-style nodes that do addition, so you're not gaining capability here, just a pre-wired option.
Is it worth installing the whole pack for? No - and nobody does. It's a tiny convenience in a pack you're already running for the optical-flow stuff. But when it's sitting there and you need "current frame minus one," it's one less node to wire, and it's honest about what it does. Nothing clever, nothing to debug, no surprise state. In a pack full of nodes that assume you know what optical flow is, OffsetNumber is the one that just adds.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| number | INT | 0-999999999999–9999999999 | — |
| offset | INT | 0-999999999999–9999999999 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |