Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate evenly spaced integer values within a specified range with a defined number of steps for precise control.
The `Range(Num Steps)
The start
parameter defines the beginning of the range from which the sequence of integers will be generated. It is an integer value with a default of 0, and it can be set anywhere between -4096 and 4096. This parameter is crucial as it sets the initial point of your sequence, influencing the entire range of values produced.
The stop
parameter specifies the endpoint of the range. Like the start
parameter, it is an integer with a default value of 0, and it can also range from -4096 to 4096. Depending on the end_mode
, this value may or may not be included in the final sequence, thus affecting the total number of values generated.
The num_steps
parameter determines how many steps or intervals the range will be divided into. It is an integer with a default value of 1, and it must be at least 1 and can go up to 4096. This parameter is essential for defining the granularity of the sequence, as it directly impacts the spacing between each value in the range.
The end_mode
parameter allows you to choose whether the stop
value is included in the generated sequence. It offers two options: "Inclusive" and "Exclusive," with "Inclusive" as the default. This setting provides flexibility in how the range is constructed, allowing you to tailor the sequence to your specific requirements.
The range
output is a list of integers representing the generated sequence based on the specified start
, stop
, and num_steps
parameters. This output is crucial as it provides the actual sequence of values that can be used in further processing or artistic applications.
The range_sizes
output is an integer that indicates the number of values in the generated range. This output is important for understanding the size of the sequence and ensuring it meets the expected number of steps or intervals.
end_mode
to "Inclusive." This is useful when you need the range to cover the entire interval.num_steps
parameter accordingly. This will ensure that the range is divided into the desired number of intervals.<start>
, stop=<stop>
, num_steps=<num_steps>
.allow_uneven_steps
parameter is set to "False."start
, stop
, or num_steps
values, or set allow_uneven_steps
to "True" if uneven steps are acceptable.allow_uneven_steps
parameter.allow_uneven_steps
parameter to resolve this issue.© Copyright 2024 RunComfy. All Rights Reserved.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.