Grasshopper

algorithmic modeling for Rhino

Hi All,

I seem to be having a bit of problem I'm trying to select and remove the first 2 and last 2 items in a list. The list could have any number of items in it and so manual selection is not idea. 

See attached definition showing how I have solved this so far, but using subset is not ideal as I would have to manually change the domain every time a different list length was used. 

Any help much appreciated.

Views: 2671

Attachments:

Replies to This Discussion

Hello

same applies to list item (in case you want to select these items)

cheers

alex

Here are a few ways I can think of doing this. I guess the second way is the easiest.

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