algorithmic modeling for Rhino
Hi guys,
I've spent some time with grasshopper now but still struggle slightly with data trees. I have stumbled upon an issue with the random reduce component.
In my definition I need to flatten the data tree to perform a random reduce, however by doing this I lose the information associated with the data tree (eg branches.) Is there a way to retain the original data tree structure when using this component? I plan to use this to divide surfaces and colour the segments randomly.
Thanks in advance
Tags:
You could perform the random reduce on the tree paths and then use a split tree component to get the results you want.
You can get a flat list of paths with the tree statistics component.
Thanks for replying Danny,
I'm a bit unsure of what you mean exactly. Are you suggesting to split the tree and perform the random reduce on each branch separately? That might work in this scenario but what if I had 20 or 30 branches. Is there a simpler way other than pure repetition?
Please correct me if I may have misunderstood
That's perfect!
Thanks heaps for taking the time to help. Clearly I have a lot to learn when it comes to data trees.
no problem!
Just be aware that this particular case reduced the panels evenly over the two sets, but a different Seed might work entirely another way. Is this what you wanted?
Yes that exactly right. I wanted the two trees to be randomly reduced together. In theory I might have one panel that is completely subtracted while the other remains in tact.
Thanks again
Welcome to
Grasshopper
© 2025 Created by Scott Davidson.
Powered by