Grasshopper

algorithmic modeling for Rhino

Next Problem. I have a geometry that is scaling larger and smaller based on list data. I want the geometry to scale from 0.1 to 2.3 and if it goes over 2.3 to default back to 0.1 and stay there. If Any number is greater then 2.3 then it lists as 0.1.

Views: 2544

Replies to This Discussion

Try the Function + Boolean + List Index approach.

Dirk, Thank you.

That helps a little but only works if I want either the 0.1 or the value that x is set to. However, I also want the values that are between them when they occur also. So let say I have a list of 9 numbers between 0.0 and 3.0. I want to keep the numbers as their respective values so long as long they do not go above 2.3, but if they do only in those cases the number would revert back to 0.1.

Thanks!
Tom

Try this.

Or you could try grafting the list.

Here's a slightly shorter method that avoids the tree structure:

That's all pretty nice, but how would you get grasshopper to select a certain group of points based on that?

for example: if x>2.3 then select items 3 from a list

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service