Alright, I found a bug in one of my definitions and I need to match the data tree of the bottom list to the one on the top. Meaning that if there is a branch missing in the bottom list in comparison to the top list (like {1} and {3} in example below), it should create the same branch in the bottom list but without anything actually on that list.
How do I add empty branches to a tree to match the other tree?
Oh! And preferably no plug-ins, if possible!
I found a solution on this page using tree sloth which does exactly what I need but Iām trying to make the definition not require any plug-ins.
Hereās a little more flexible Python recipe that letās you declare a list of desired path that you want to add. It works just like inserting an item into a list.
Thanks @HS_Kim, this might be the easiest and flexible solution for my problem.
@Joseph_Oster I believe Suirify is a standard part of grasshopper1 in Rhino6. Thanks for your solution, though it would require manually adjusting the entwine component if the input changes.
Oh, I just see your second solution now, that could work as well, thanks!
@diff-arch Thanks! Iāll have a look at your python script just for curiosity, but think the other solution might be easier for my purpose.
I doubt you can find a simpler, more robust, no-friggin-plugin solution that works in both R5 and R6. The errors from the red Branch component are logical and expected:
I highly doubt anyone downloaded it just for X+1, it just happened to be there and the user either didnāt know it was from the plugin when they used it in their definition or found it mildly convenient. Truth be told some of those smaller āutilityā components I add for my self because I donāt like repeating the processes, in one update I went through and removed a bunch of them (30 or so) and got many complaints to add them back, so I did. They are not at all the core or main use of my plug-in but people seem to like them. At the end of the day I donāt care what people use to do what they do.