Data Tree Sorting

How do I generate a tree from this list that only includes the odd branches of the form {0,1} and {0,3}. I would eventually like to use this method on a more complicated tree that has the structure {0,x,0}. In that case, I will be trying to generate a tree with branches {0,1,0}, {0,3,0}, {0,5,0} etc…

grasshopper (3.4 KB)
grasshopper questions.3dm (1.9 MB)

Have a look at the attachment.

grasshopper (10.5 KB)

Thanks! I’ve got a couple of questions.

First of all, I’m getting an error message on the cull pattern that says “Data conversion failed from text to boolean”

Could you also explain how the culling pattern is operating on the list of paths?

Download the attached def. and see what’s going on with the panel.(You probably didn’t uncheck the “Multiline Data”)

where is the attachment?


Yes, that is the one that I downloaded originally. And Multiline data is unchecked.

grasshopper (16.2 KB)

Due to my limited knowledge of grasshopper, I don’t quite understand the above. However, I fixed the error message by deleting the panel which had the boolean pattern on it and entering it directly into the cull pattern. Thanks so much for your help!

Just taking a guess here, are you using the Mac version of Grasshopper? There’s a sneaky bug that causes multi list panels to behave in that manner, check out these other posts:

1 Like

I am indeed on Mac. Thanks for the help!