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 from start toward stop by the value in step.
  • num_steps: Divides the interval between start and stop into a specified number of equal steps using num_steps.

The end_mode option controls whether the final stop value is included in the generated range.

Inputs

InputTypeDefaultDescription
range_modeCOMBOstepSelects the range generation method. step uses the step input; num_steps uses the num_steps input.
startFLOAT0The first value in the range.
stopFLOAT1The end boundary of the range.
stepFLOAT1The increment between values when range_mode is step. Positive values produce ascending ranges; negative values produce descending ranges.
num_stepsINT1The number of equal step divisions when range_mode is num_steps.
end_modeCOMBOInclusiveIf 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

OutputTypeDescription
FLOATFLOATThe generated range as a sequence of floating-point values.
INTINTThe 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 INT output is convenient when the generated range will be fed to integer-consuming nodes, avoiding an extra conversion step.
  • end_mode is especially important when the range lands exactly on stop. With fractional step values, floating-point rounding may affect whether the final value is considered equal to stop.
  • Avoid setting step to 0 in step mode, as it prevents the range from advancing normally.
  • The step input is only used in step mode; the num_steps input is only used in num_steps mode.

Comments

Sign in with GitHub to join the discussion.

Loading comments…