Create sliders with conditions


#1

Hello I would like to create a slider with a condition. For example, if a have two sliders, i would like make one of them with the restriction of the high level never being higher than the level of the first one. Hope I can explain. Thanks


(David Rutten) #2

You’ll have to post-process your values, slider limits/values/accuracies cannot be changed by other objects in the file (at least not without some sort of plugin such as MetaHopper).


#3

Do you mean something like this? (Upper sliders sets max, lower slider yields its value or gets stuck at Max. Max value always wins if lowered below the lower slider value):

Slider Conditional MaxValue.gh (5.8 KB)

// Rolf


#4

YESS, thanks RILL


#5

Only one “L” in RIL. This is important. I don’t know why though. :wink:

// Rolf


#6

OK, sorry, thanks again


#7

Just multiply by a ‘0 To 1’ slider:


#8

Minimum or using Expression


#9

like it, thanks