Always get this done by code block, but problems when try to get these numbers within Python Script. Anyone can help? Thank you!
The range() function only accepts integers. You can write a custom function like this:
custom range.dyn (10.4 KB)
def range_plus(start, stop, num_steps):
range_size = stop-start
step_size = float(range_size)/(num_steps-1)
for step in range(num_steps):
yield start + step*step_size
a = int(IN[0])
b = int(IN[1])
c = int(IN[2])
OUT = range_plus(a, b, c)
4 Likes