This is my first post to the forum! So I hope my question is relatively clear and correctly tagged. Let me know if any other content would be helpful in solving this problem too.
I have been working with branches & lists in grasshopper to move data. Each branch and its associated list data carry a brep and may carry points. Essentially, all I want to do is sort or call specific branches and move them to a bin. Given that I am moving several branches with specific indices and with associates information, I want to call a branch with a specific branch identifier. The reason I am doing this is because I have a hexagon grid that has been extruded and booleaned and now want to bucket the all the nth hexagons or nth hexagon sides, but those sides have other attached information such as points when applicable and I don’t want to loose the side’s specific index code either.
For example: if I have multiple branches like {3;3;0}, {3;3;1}, {3;4;0}, {3;4;1}, {3;4;2}, {3;4;3}…{11;2;0}, {11;2;1}, {11;2;2}… I would want to call all the branches that end in 0 and bucket them like {#;#;0} so {3;3;0}, {3;4;0}…{11;2;0}…and with them their associated list data. Likewise call all branches that are defined by the location 3;4 {3;4;#} (indicating that it is an object defined by row 3 and column 4) so branch {3;4;0}, {3;4;1}, {3;4;2}, and {3;4;3} or more accurately to call branches having the same first 2 keys (all 3;4s, 11;2s or another pair) and bucket those branches. So all the 3;3;#s get placed into a bucket, all 3;4;#s bucket, all 4;3;#s bucket, ect.
I have tried path mapper, cull, & list item components with no luck as seen in the attached file. Hopefully attaching those helps show where I’m aiming. I assume the best way might be in python. I am starting to learn python so would actually prefer to resolve the issue in there if possible anyway. Plus, I might try to continue in python for later steps such as joining. If there is a way to do it in python that’d be great; although, if there is a way to do this in grasshopper, I would be curious to know what I could have done too.
Thanks in advance for taking a look!
2020_0403_BinSorting&CallingIndex.gh (1.2 MB)