Grasshopper

algorithmic modeling for Rhino

hi,
I would like to copy very n-th item from a list into a new list. Similar to cull / cull pattern but more like copypattern.

thanks,
Peter

Views: 819

Reply to This

Replies to This Discussion

If you ask, you will probably receive in the next release of GH. However in the meantime, you need to generate a boolean pattern that will cull all the other elements you don't want. See Below:

Hi Peter,

I suppose the easiest way is to generate a list of number with the Series component, then use List Item to extract all the items.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
thank you both!
I just thought the item component can only extact ONE item from a list at a time, not multiple. so that works now,

best regards
Peter
Well, the very logic of grasshopper means you can always supply multiple inputs and it will give you multiple outputs. This has nothing to do with the ListItem component as such, all components work in the same way. Only a very few components that operate directly on Lists and Trees override this default behaviour.

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

thanks for this. can you discribe how you create the cull pattern with components / post the definition?
thanks,
Peter
yes, and I have used that plenty, but for some reason I did not think about it in this way in this instance...

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service