Output Lists to Tree Branches - Grasshopper2024-03-29T13:10:20Zhttps://www.grasshopper3d.com/forum/topics/output-lists-to-tree-branches?commentId=2985220%3AComment%3A1810589&feed=yes&xn_auth=noThe output set to list was ex…tag:www.grasshopper3d.com,2017-09-08:2985220:Comment:18110242017-09-08T17:40:28.931Zjchttps://www.grasshopper3d.com/profile/jc206
<p>The output set to list was exactly the problem, don't know how I missed that. Seems so obvious now. Thanks man!</p>
<p>The output set to list was exactly the problem, don't know how I missed that. Seems so obvious now. Thanks man!</p> You are definitely setting yo…tag:www.grasshopper3d.com,2017-09-08:2985220:Comment:18105892017-09-08T13:58:44.843ZDavid Stasiukhttps://www.grasshopper3d.com/profile/DavidStasiuk
<p>You are definitely setting your output as a list, which is a problem: <em>DA.SetDataList(0, tree);</em> This should instead by <em>DA.SetDataTree(0, tree);</em> Plus, you'll need to make sure your GH_ParamAccess output is registered as a "tree", something like:</p>
<p><em>pManager.AddGeometryParameter("Output Geometry", "G", "Data tree of geometry", GH_ParamAccess.tree);</em></p>
<p>You are definitely setting your output as a list, which is a problem: <em>DA.SetDataList(0, tree);</em> This should instead by <em>DA.SetDataTree(0, tree);</em> Plus, you'll need to make sure your GH_ParamAccess output is registered as a "tree", something like:</p>
<p><em>pManager.AddGeometryParameter("Output Geometry", "G", "Data tree of geometry", GH_ParamAccess.tree);</em></p> Thanks for the reply! Append…tag:www.grasshopper3d.com,2017-09-05:2985220:Comment:18090042017-09-05T19:12:14.739Zjchttps://www.grasshopper3d.com/profile/jc206
<p>Thanks for the reply! Append did not work either. Using Append to add elements one by one or AppendRange to add them as lists result in a tree where PathCount returns the correct number of paths but the ultimate tree structure output in Grasshopper is a single path (single branch?) containing all of the elements.</p>
<p>Thanks for the reply! Append did not work either. Using Append to add elements one by one or AppendRange to add them as lists result in a tree where PathCount returns the correct number of paths but the ultimate tree structure output in Grasshopper is a single path (single branch?) containing all of the elements.</p> Is there a particular reason…tag:www.grasshopper3d.com,2017-09-05:2985220:Comment:18089892017-09-05T17:34:02.918ZDavid Stasiukhttps://www.grasshopper3d.com/profile/DavidStasiuk
<p>Is there a particular reason you're using AppendRange rather than appending them one by one?</p>
<p>Is there a particular reason you're using AppendRange rather than appending them one by one?</p> No ideas on this one? Are the…tag:www.grasshopper3d.com,2017-09-05:2985220:Comment:18092192017-09-05T15:36:05.138Zjchttps://www.grasshopper3d.com/profile/jc206
<p>No ideas on this one? Are the missing examples in the SDK, <a href="https://goo.gl/UuAutg" target="_blank">https://goo.gl/UuAutg</a>, for writing trees available anywhere?</p>
<p>No ideas on this one? Are the missing examples in the SDK, <a href="https://goo.gl/UuAutg" target="_blank">https://goo.gl/UuAutg</a>, for writing trees available anywhere?</p>