Grasshopper

algorithmic modeling for Rhino

Hello everyone, Im have been trying to cull the values of a list, specifically the ones from -2 to 2.

I have tried with the evaluate component and no luck.

"Smaller than" and "larger than" plus "and" couldnt make it for me either.

Also tried with the "include component, but for some reason it does not recognize negative values.

Any ideas?

Thanks Shynn

Views: 1610

Replies to This Discussion

For cases like this I like to use the Dispatch Node. It takes a list of values and a corresponding list of Boolean values, which decide which list item gets output into list A or B. So then you can use larger than and smaller than easily.

Attachments:

Oh yeah, and best of all, you can use Weave with the same pattern to put both lists back together in the same order as before the dispatch, which is extremely handy in a lot of cases where you want to do 2 different operations on items in a list, but need to keep the data structure when you put them back together (which is usually what you want).

Attachments:

I tried that just that before, but for some reason it does not work...

Attachments:

Thanks, I tried that too, but it was not working.

So then I proceeded to copy this part of the definition into another canvas and it worked. I then brought it back and it stayed correct. You can see both variations.

I think it might be a bug, I have uploaded my full def.

Attachments:

It's not a bug.

Attachments:

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