Grasshopper

algorithmic modeling for Rhino

has anyone done a vb operator for values between to ends.
in order to set up a condition.

appreciate if someone can help,
cheers

Arya

Views: 399

Replies to This Discussion

Can you elaborate on this? What values? Number? Ends?

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David,

thanks you for the incredibly fast reply,
I have a list of number ( areas)
all i want to do is set up a number of conditions where the list is divided into a range of values between 4 numbers. so if i have a min of 0 and a max of 10 i wouild have lets say ( 0-2.5, 2.5-5, 5-7.5, 7.5-10) and then plug them into 4 prototypical geometries.
so let say if the areas is between the first range then use (type 01) and so on.

thanks

A
Attachments:
Hi Arya,

I think the Dispatcher is probably your best bet. You need to munge your numbers so that:

0.0 - 2.5 becomes 0
2.5 - 5.0 becomes 1
5.0 - 7.5 becomes 2
7.5 - 10 becomes 3

Then you can split the list into separate outputs.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
david,

I am not sure how to do it but I will give it a go,
thank you again,

A
Something like this perhaps?
Attachments:
Thank you very much,
works really well.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service