Cluster input removes empty branches and messes up tree structure - Grasshopper2024-03-28T21:37:29Zhttps://www.grasshopper3d.com/forum/topics/cluster-input-removes-empty-branches-and-messes-up-tree-structure?commentId=2985220%3AComment%3A1151697&feed=yes&xn_auth=noTrack this bug: https://mcnee…tag:www.grasshopper3d.com,2017-10-25:2985220:Comment:18410372017-10-25T20:00:46.290ZLuis Fraguadahttps://www.grasshopper3d.com/profile/LuisFraguada
<p>Track this bug: <a href="https://mcneel.myjetbrains.com/youtrack/issue/RH-42155" target="_blank">https://mcneel.myjetbrains.com/youtrack/issue/RH-42155</a></p>
<p>Track this bug: <a href="https://mcneel.myjetbrains.com/youtrack/issue/RH-42155" target="_blank">https://mcneel.myjetbrains.com/youtrack/issue/RH-42155</a></p> BUMP
BUMP
BUMP
tag:www.grasshopper3d.com,2017-08-16:2985220:Comment:17991802017-08-16T09:57:05.472ZGuido Rhttps://www.grasshopper3d.com/profile/GuidoR
<p>BUMP</p>
<p>BUMP</p>
<p>BUMP</p>
<p></p>
<p>BUMP</p>
<p>BUMP</p>
<p>BUMP</p>
<p></p> Can confirm, I've encountered…tag:www.grasshopper3d.com,2014-10-30:2985220:Comment:11580852014-10-30T09:43:54.458ZArendhttps://www.grasshopper3d.com/profile/Arend
<p>Can confirm, I've encountered the same issue before.</p>
<p><a href="http://www.grasshopper3d.com/forum/topics/cluster-removes-empty-paths" target="_blank">http://www.grasshopper3d.com/forum/topics/cluster-removes-empty-paths</a></p>
<p>Can confirm, I've encountered the same issue before.</p>
<p><a href="http://www.grasshopper3d.com/forum/topics/cluster-removes-empty-paths" target="_blank">http://www.grasshopper3d.com/forum/topics/cluster-removes-empty-paths</a></p> Hey Andrew,
Thanks for that.…tag:www.grasshopper3d.com,2014-10-20:2985220:Comment:11521362014-10-20T06:39:05.649ZRamon van der Heijdenhttps://www.grasshopper3d.com/profile/Ramonster
<p>Hey Andrew,</p>
<p></p>
<p>Thanks for that. Let's hope this will get fixed soon.</p>
<p></p>
<p>Hey Andrew,</p>
<p></p>
<p>Thanks for that. Let's hope this will get fixed soon.</p>
<p></p> This is certainly a bug - and…tag:www.grasshopper3d.com,2014-10-19:2985220:Comment:11516972014-10-19T16:08:58.642ZAndrew Heumannhttps://www.grasshopper3d.com/profile/AndrewHeumann
<p>This is certainly a bug - and an annoying one at that. I typically rely on a short script that adds nulls to every empty branch - then if necessary I can clean the tree once inside the cluster. </p>
<p></p>
<code><br />
</code><p><code>private void RunScript(DataTree<object> x, ref object A)<br/> {<br/>
foreach(GH_Path p in x.Paths){<br/>
if(x.Branch(p).Count == 0){<br/>
x.Add(null, p);<br/>
}<br/>
}<br/>
A = x;<br/>
}</code></p>
<p>This is certainly a bug - and an annoying one at that. I typically rely on a short script that adds nulls to every empty branch - then if necessary I can clean the tree once inside the cluster. </p>
<p></p>
<code><br />
</code><p><code>private void RunScript(DataTree<object> x, ref object A)<br/> {<br/>
foreach(GH_Path p in x.Paths){<br/>
if(x.Branch(p).Count == 0){<br/>
x.Add(null, p);<br/>
}<br/>
}<br/>
A = x;<br/>
}</code></p>