Trees Pack / Unpack

Hello,

i have three different trees no relation to another and i want to be able to stack them and unstack them unharmed pathwise. This is in order to transfer multiple data across my document at once and also plug multiple data at once instead of doing it one wire at a time. my document is heavy and i have to lock - unlock solver all the time in order to switch some wires.

So the idea is to have some sort of cluster like a “GROUP” node but with multiple inputs and one output and another “UNGROUP” cluster one input multiple outputs to decompose my trees again. But ofcourse each tree has to remain intact holding the same data structure.

So this what i’ve tryied already, but i havent figured a way yet to do the decomposing with only one input.
Hope this makes sense

So i managed to do it i think, it works for the number of trees i needed but can be upscaled i think. Here is the definition in case someone knows a better way. Maybe i’ve missed something entirely obvious…

Tree pack_unpack.gh (22.4 KB)

Does this work as you need it to…
On the Entwine you need to click the middle and unclick the flatten tree option.
Bang! Component is called Explode tree.

I am also driven by same need

i also have set of data coming out of a cluster , they have branches and subbranches with different data tree structure , i was looking for a way to “pack” all of this data and explode them downstream the script , a sort of entwine component but that does not flatten the data tree on the inputs thus to preserve original data tree structure.

isn’t there any component like this ? i think this could be very useful beside merge e entwine

thanks

1 Like