EasyUse/Logic/Typegenerated
Range(Float)(RangeFloat)
The Range(Float) node generates a sequence of floating-point values from start to stop.
Range Float
range
range_sizes
range_mode
step
start
0.0
stop
1.0
step
1.0
num_steps
1
end_mode
Inclusive
Easy Use
Description
The Range(Float) node generates a sequence of floating-point values from start to stop. It is part of the EasyUse/Logic/Type category and is useful for building value sweeps, parameter ladders, schedules, or any workflow that needs a consecutive range of numbers.
Two range generation modes are available:
step: Advances fromstarttowardstopby the value instep.num_steps: Divides the interval betweenstartandstopinto a specified number of equal steps usingnum_steps.
The end_mode option controls whether the final stop value is included in the generated range.
Inputs
| Input | Type | Default | Description |
|---|---|---|---|
range_mode | COMBO | step | Selects the range generation method. step uses the step input; num_steps uses the num_steps input. |
start | FLOAT | 0 | The first value in the range. |
stop | FLOAT | 1 | The end boundary of the range. |
step | FLOAT | 1 | The increment between values when range_mode is step. Positive values produce ascending ranges; negative values produce descending ranges. |
num_steps | INT | 1 | The number of equal step divisions when range_mode is num_steps. |
end_mode | COMBO | Inclusive | If Inclusive, stop is included in the range when the range reaches it. If Exclusive, the range ends before stop. |
start, stop, and step accept values from -4096 to 4096 with a widget increment of 0.1. num_steps accepts integers from -4096 to 4096 with a widget increment of 1.
Outputs
| Output | Type | Description |
|---|---|---|
FLOAT | FLOAT | The generated range as a sequence of floating-point values. |
INT | INT | The same range converted to integer values. |
Usage Notes
- Use
range_mode = "step"when you know the exact increment you want between consecutive values. - Use
range_mode = "num_steps"when you want a specific number of divisions regardless of the exact step size. - The
INToutput is convenient when the generated range will be fed to integer-consuming nodes, avoiding an extra conversion step. end_modeis especially important when the range lands exactly onstop. With fractionalstepvalues, floating-point rounding may affect whether the final value is considered equal tostop.- Avoid setting
stepto0instepmode, as it prevents the range from advancing normally. - The
stepinput is only used instepmode; thenum_stepsinput is only used innum_stepsmode.
Comments
Sign in with GitHub to join the discussion.