Grasshopper

algorithmic modeling for Rhino

Maintain index of original list when using 'cull pattern'?

Hi Guys,

I would like to cull vertices with a 'true true false' pattern and with the inverted one in order to operate only on some items of my list. When I later merge the two lists, I loose the original order.

Is there a way to cull items and keep the original index so that the merge could work?

I am thinking of a similar thing to the 'maintain' or renumber of the tree branch component.

I hope it makes sense, please see simplified example below.

Many thanks,

Arthur

Views: 3595

Replies to This Discussion

Here's one way to do it but requires the tree branch tool:

Have you looked at the "sift" component? It splits out your data but includes null results in each list so that you can later use the "combine" component to bring your lists back together...so say you want to perform an operation on a set of the data then it will work.

like so:

Thank you so much David!

That's really helpful, I didn't know about 'sift'.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service