Grasshopper

algorithmic modeling for Rhino

Hi.

I think I might be very tired, somehow I can't figure out how to remove an interval of items from a list. I have a list of 13 values, i want to remove for example items from 4 to 7. I wanted to use the cull pattern, so I wanted to make the pattern using a function component. x=y. x= the original list and y= the interval i wanted to remove. So the pattern should be:
0: false
1:false
2:false
3:false
4:true
5:true
6:true
7:true
8:false
9:false
10:false
etc...

Views: 186

Replies to This Discussion

You can try the sublist no? Feed it in two intervals 0 to 3 and 8 to 10...
Yes that is true, the only thing is if I want to remove the first 4 items fx. Then the sublist is gonna consist of 0-0 interval, but that should really be removed i guess. But I can try... I just think the pattern would be more correct.
Thanks though

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service