am however having a problem with something simple - limiting a set of values between a fixed set that I need help with please?
For example, I'd like to transform this list . . .
(2, 16, 4, 65, 12, 41, 7, 1, 22)
into this one . . .
(5, 16, 5, 25, 12, 25, 7, 5, 22)
i.e. selecting all numbers below 5 and changing them to 5 and selecting all numbers above 25 and changing them to 25.
I know it's possible with a simple If, Not, Then series but I'm rubbish at code!
Also, is there a simple way to apply dimensions to rhino objects from within GH?
Thanks for your help!
Cheers
James…
ards to the number before the start number...
i.e. 9, 0, 1, 2, 3, 4, 5, 6, 7, 8
then it will need to repeat this pattern (continuing to count upwards) and the repeat number is based on a slider (for example 3 in the case illustrated below):
9, 0, 1, 2, 3, 4, 5, 6, 7, 8
19, 10, 11, 12, 13, 14, 15, 16, 17, 18,
29, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
if anyone has any ideas on how to create this series it would be great
M.…