Hi all,
I’m trying to get better at data structure management in Grasshopper, but it’s not going too well so far… Hopefully, one of you can help me with some good workflows!
I’m trying to pick lists of geometry using an assigned ID. I have a list of all the ID’s and a data tree structure of all the geometry sorted into branches with paths corresponding to the correct ID. Ex. ID:A0 is in branch {0}, ID:A1 is {1} and so on.
I’m using the Item Selector
from Human UI to select the desired ID’s. However, when using the Tree Branch
component, the geometry is merged into the previous data structure {A} and not {A;B}. I would also like to keep the data tree branch path structure, so geometry selected with a A3 ID is located in a {x;3} path.
I have created a data tree with the desired structure I hope to achieve. It might be a simple matter of correct flattening and grafting, I’m not sure…
Thanks in advance!
Pick_geometry_using_ID.gh (9.3 KB)