Slider that feeds in specific number pattern to graph mapper

Hello!

Let’s see if someone can figure this out because I can’t think of anything.

I need to animate something, so this needs to be done through a number slider. But what I need is a specific pattern that will be fed into the graph mapper (0, 0, 0, 0, 0, 0.1, 0.2, 0.3, 0.4, 0.5). Since this can’t be done with a slider, I need another method. I’m looking for a way to plug the slider into a sort of value list that will “activate” each subsequent value for each step in the slider.

I.e.:
slider value 1 = list value 0
slider value 2 = list value 0
slider value 3 = list value 0
slider value 4 = list value 0
slider value 5 = list value 0
slider value 6 = list value 1
slider value 7 = list value 2
slider value 8 = list value 3
and so on…

Let me know any potential solutions, thanks.

something like this might work:

sliderbranch.gh (12.4 KB)

One of those “how did I not think of that” moments… thank you very much.

1 Like