Grasshopper

algorithmic modeling for Rhino

Hello GH developers,

in some version, wherever you get the chance, could there be a slider which takes two inputs, one for the desired maximum value and one for the minimum?  So, clearly, one can slide and retrieve values between the min and max.  It would be great when there are a bunch of sliders and the desired max or min changes.  Thoughts?

Views: 3931

Replies to This Discussion

Nice suggestion.

 

For now you could do something like this:

Use the default values of the slider from 0 to 1, multiply that with your max value. Use the Max component to return the larger of the min value and your multiplied value.

Remap is perhaps better :

Hi Michael,

 

For three years this suggestion has been cropping up and the still no sign... maybe this year... maybe... :)

 

The consensus of opinion seems to point to the Remap Numbers component.

By default the S Input is 0 to 1

 

 

ahhh, very cleaver.

 

Thanks!!

Hi

The problem is to catch wrong user inputs or if the value is not supported from the input range.

What should happen with the range if the value is lower or higher

So the best solution is to use the remap as proposed.

 

cheers

Should not be a too big problem, right? Other components can also throw exceptions and give a null output upon invalid input: the slider could also do this?

But what would be the benefit of such a additional component when i can use remap?
seems like one of the differences is when there are multiple sliders.  primarily superficial though.  see attached.  not to be taken as an argument of any kind, just an exercise to see what it would look like.
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service