Random holes

hi does anyone know how to set increments in a range from 0 - 10 in increments of 2

ie 2,4,6,8,10

Try a code block and type in


0ā€¦10ā€¦2 in a code block will do a sequence starting at 0, ending at 10 by 2 steps

Thanks for this its a real help to a complete novice!! Iā€™m basically bringing in a series of numbers at the moment into math.remap range but it will only allow you to set min and max not increments so I need to bring in a list of numbers and then filter those numbers to be only 2,4,6,8,10 if that makes any sense. I will post an image when I return to work tomorrow.

This may be helpful: Shorthand | The Dynamo Primer

Start with your Math.RemapRange where the low is zero and the high is 5 (I know, not 0-10 but have some patience).

Then move into a Math.around node which will ensure that all values are full numbers between 0 and 5.

Then multiply the result by two.

In design script it would be something like this:

1 Like