kev.r
(Kevin)
June 2, 2024, 10:30pm
4
Easy to find lots of threads that reference this problem, but no explanation of why this occurs and no solutions.
Hi there,
I read that this weird behavior is there since 2014 but nobody solves it. Empty branches disappear in cluster and reappear outside but this mess up the data structure and the process inside the cluster.
The data is reorganized in the explode tree component. See images below.
I know solutions like adding nulls to empty branches or calling branches by path but these are just workarounds to a bug. In any programming language, an empty list is also an object and should be visible.
[Sc…
This is an old topic but there hasn’t been an update on it for a while so I’m posting it again.
[image]
all looking good from outside, but…
[image]
inside empty paths are missing.
Clearly, this only becomes a problem for previewing an output when working inside clusters but it’s still pretty critical.
Hi, I just ran into an unexpected bug with clusters that is causing some headaches. Namely, I have some intentionally empty branches on some of my inputs that are being removed when inside the cluster.
Oddly, those branches are only being removed when I am inside editing the cluster, which is actually causing me to get different results when I am outside vs inside the cluster. Outside of the cluster, my outputs are behaving as I intended, but while inside my results are all garbled because the …
I love grasshopper, and I have used it for almost 7 years now. It is an amazing tool.
But the data trees have some really strange behaviors regarding empty branches, which have caused me countless hours of pain!
Empty branches are not visible inside clusters
The cluster works as expected but it is easy to introduce bugs when all empty branches are removed.
[Cluster works as expected]
[Inside the cluster the empty branches are gone]
Expression component adds null to empty bran…
There are some cluster data differences between inside and outside of the cluster. I’ve found some old topic about that.
I’m using Rhino WIP.
[image]
[image]
The Clean Tree components in the file you posted are not having any effect because the “problem” branches are not empty, they contain 1 item.
Since you are passing the original datatree through your cluster, you can use the empty branches from this to cull your result. Not a fix, but a possible workaround for the case you provided.
20240602 GH CLUSTER EMPTY BRANCHES 02_re.gh (29.8 KB)
-Kevin
2 Likes