algorithmic modeling for Rhino
Just wondering ,
I am very ofter driven by need to change the slider's min and max values depending on other variables . For example when i have a "list item component" and a list of values with variable lenght to pick from . In this case it'd be useful the slider to be self adapting and change it's max value according to the list lenght.
Is there any easy way to do this ? if not i wonder if it could be useful to have some additional input on the slider component to allow the slider to be self adapting.
here is just a rought image of what i mean ( im sorry for the ugly copy/paste )
Tags:
What happens when you provide more than one rounding, digits, min or max value? (range btw follows from min and max so you can't input all three). What number should be displayed when there are multiple limits? Where does the slider snap if there are conflicting rounding behaviours?
hi David and thanks for your prompt answer
well, I was just wondering and decided to post the idea but now your questions highlight some critical point and surely i am just an ordinary user with not enough experience to undestand what it takes to implement this kind feature...not sure I undestand the problem but i think that when there is more than one rounding on the inputs values of all inputs should be setted with a number of digits = to the highest one
I think that the chance to control the slider limits automatically could be an appreciated feauture for most of the users ... i refrain from giving opinions on wether this is possible and on what's is the best way to make it happen
Hmm ... in addition to David's spot-on questions and given the opportunity get these defs that "highlight" some stuff that you can do with regard slider control (but then again ... they maybe make sense if a given def is entirely driven via code [for a "total" control depending on "variable conditions" that may occur during a solution]).
HI Peter and thanks for your useful examples...i 'm quite impressed about the amount of ideas you have been able to script and propose in such a short time.
some of these examples such as "SLC_adjustslider_V2" are very close to my idea ... I think it's about time to start studying some C# :)
metahopper lets you do this with the "set slider" component.
HI Andrew and thanks for suggesting metahopper as a solution to my wish
I never used it before but after watching your video i realized that there are several useful features from which get benefit , i am going to install it right now.
cheers ;)
Just another suggestion:
You could have a slider ranging from 0 to 1 and do the rest with some math
e.g. changing the range:
(upper-lower) * slidervalue[0-1] +lower => slider with a varying upper / lower range
e.g.: + number of digits
round(value * precision) / precision => number of digits control even any step width e.g. 0.2 steps are possible this way.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by