easy rangeFloat
Generate a list of numbers to sweep a value
- range
- range_sizes
easy rangeFloat spits out a list of floats - 0.0, 0.1, 0.2, ... up to whatever you set. It's the number generator you reach for when you want to sweep a parameter: try a LoRA at strengths 0.4 through 1.0, or a denoise across 0.3 to 0.7, and see the whole ladder at once instead of running the graph by hand ten times. Feed the list into a node that iterates over it (a loop, or an input that fans out) and you get a batch of results, one per value.
It's a plumbing node, not a generation node, but it's a genuinely useful one for anyone doing systematic comparisons. Think of Python's range() but for floats and with two ways to specify the spacing.
How it works
You define a start and stop, and then either a step size or a target number of values, and the node builds the list. range_mode picks which of those two you're using: give it a step and it counts up by that increment; give it a num_steps and it divides the span into that many evenly-spaced points. end_mode decides whether the stop value itself is included or not. The result is a plain list of floats you can route anywhere a float is accepted.
The inputs that matter
range_mode- the choice between counting by a fixedstepor splitting into a fixednum_steps. This is the first thing to set, because it decides which of the two fields below actually matters.start/stop- the bounds of the sweep.step- the increment, when you're in step mode.start 0.4,stop 1.0,step 0.1gives you 0.4, 0.5, ... 1.0.num_steps- the count, when you're in num-steps mode.start 0,stop 1,num_steps 5gives five evenly-spaced values.end_mode-Inclusiveincludes thestopvalue; the alternative stops just short of it. This is the classic off-by-one control, so if your last value is missing (or unexpectedly present), this is the switch.
Outputs:
range- the list of floats.range_sizes- the count of values produced, as an INT list, useful for driving loop bounds.
How to install it
Via ComfyUI Manager: search "ComfyUI Easy Use", install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/yolain/ComfyUI-Easy-Use
Then install.bat / pip install -r requirements.txt, restart. Preinstalled on comfy.icu.
Common issues
The two easiest mistakes are both about mode. If you set a step but the node is in num-steps mode (or the reverse), it'll happily ignore the field you meant to use and produce a list you didn't expect - always check range_mode matches the field you filled in. And end_mode is where the off-by-one lives: Inclusive versus exclusive is the difference between your sweep ending on 1.0 or on 0.9, which matters a lot when the endpoint is the case you actually cared about.
Also remember this outputs a list, not a single number. Whatever consumes it has to be able to iterate - wire it into a plain float widget expecting one value and you'll either get only the first entry or a type complaint, depending on the node. It's built to feed loops and fan-out inputs, so pair it with something that knows what to do with many values.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| range_mode | COMBO | step | 2 options: step, num_steps |
| start | FLOAT | 0.0-4096–4096 | — |
| stop | FLOAT | 1.0-4096–4096 | — |
| step | FLOAT | 1.0-4096–4096 | — |
| num_steps | INT | 1-4096–4096 | — |
| end_mode | COMBO | Inclusive | 2 options: Inclusive, Exclusive |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| range | FLOAT | — |
| range_sizes | INT | — |