Grasshopper

algorithmic modeling for Rhino

Hey Guys,

Question about selecting a certain number of items from a list. 

Say I have a list of rectangles and a second list of true false values.

I want to be able to select/grab only the rectangles with an index number that matches with a true value on the index number in the second list. How can I do that? What I'm doing doesn't seem to be working. The screen capture is below

Views: 1627

Attachments:

Replies to This Discussion

You shouldn't have the TRUE FALSE values plugged into the "W" Wrap input of ListItem for a start... this is to set whether to wrap the List around so if you select an Item that is greater than the total number of items in your list it wraps back around to the start.

Use CullPattern component which will remove items from a list based on your TRUE FALSE input and leave you with the items you want.

Cool! Thanks Martyn

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