Simple For loop not working

I wan to offset a curve n amount of times so I’m practicing writing a for loop in DesignScript but I am only getting null values. What am I doing wrong?

Thanks,

Ok I think I got it to work. This is very confusing compared to other languages (C++, Python). Seems like you need two separate variables.

Ok Back to drawing board. What am I doing wrong?

Hi @sascari, maybe try to set your list level
(but if you want to join all the curves that are offset, i think it is not possible)

No I don’t need to join them, I just want to offset a PolyCurve n times. That’s all…

I didn’t realize you could also feed a list into the “signedDistance” variable…

1 Like