hi does anyone know how to set increments in a range from 0 - 10 in increments of 2
ie 2,4,6,8,10
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
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:
Math.Round(Math.RemapRange(valueSet,0,5))*2;