Grasshopper

algorithmic modeling for Rhino

Hi Grasshopper gang !
I'm happy to start posting here :)

As I just started using Grasshopper, this question will probably sound simplistic, but there I go : the max (or min) tools only alow two numbers as input , so what would be an elegant way to get the max (or min) value out of more than two numbers
...other than asking David to remove this limitation ?


Cheers !

Views: 4537

Replies to This Discussion

Hi Oliver,

I'm sure David said that there would be a new component to do this but in the mean time you could use this method of sorting a list and then taking the first and last values.

Thanks Dany !

It does the trick all right.
I wonder if it's really usefull to create a new component for this.
Why not simply allow more than two inputs for Min and Max ?
Would it have an undesirable consequence that I have not figured out ?
There is a new component, I was looking in the wrong place. If you look in the interval tab you will see a component called bounds this gives an interval of the min value to the max.

Thanks Danny.

Just a little extra effort, and I 'm sure we can do it with one component only ;)
You guys are mixing two different things. The min/max components compare each value of a list with the corresponding value of another list and returns the smallest/largest number of the two. The posted screenshots retrieve the smallest/biggest value of one list.

If you have a defined number of lists you can just chain together several min/max components.
If you have an undefined number of lists and you want to use one of the previous methods, you'd have to rearrange the numbers into new lists so that the first number of all the original lists are in one list, the second number of all the original lists are in a second list and so on..
Hi Vicente,

I wasn't confused about what Oliver intended to do with GH. He wanted the maximum value from a list of numbers that was greater than 2 (or min). That's what the bounds component can do, but thank you for your explanation of the min/max component, I didn't realise that you could use two lists to compare.
Hi Danny, Vicente,

Here's what I understand : the "Min" and "Max" components can compare two numbers, as advertised ("Find the larger of two numbers"), but also two LISTS of numbers.
That's why it can not be used to compare more than two numbers in a single list.
Pheww...

One must admit this can be confusing, added to the fact that using "Bounds" + "Interval components" isn't very straightforward for such a simple task...

Anyways, thanks guys !

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service