I’m trying to reference a set of culling patterns stored inside 10 panels. So far, an input of one number gives me the panel I want, but I can’t input more than one number at once into the stream gate component.
Essentially, for each number going into this component (or equivalent component), I need the corresponding panel to be added as a branch.
In the second file I’ve tried combining the panels into their own data tree but I still cannot figure out how to reorder/reference the branches in order of the input numbers.
Any help and or insight would be greatly appreciated.
Multi Data Stream Gate.gh (pictured above) (11.5 KB)
Multi Data stream Gate w Trees.gh (7.7 KB)
This approach was the first thing I tried too, but it failed for me because I didn’t know about the “Maintain Paths” right-click option in ‘Tree Branch’. Default is checked; un-checking that option causes the paths to be renumbered instead of merged. Very handy! I often learn something reading your code, thank you.
One little quibble though… ‘Entwine’ is a more reliable and predictable way to combine the panels than hooking wires directly to ‘Partition’ because it guarantees the sequence of panels and will handle lists of different lengths. I added the ‘Branch’ method to my previous post (yellow group) while the original remains (blue group). They produce the same results, of course (though paths from blue group have more leading zeroes…).