Transforming Different Types of Objects at the Same Time?

I want to create a forest using multiple types of trees, in this example i have 3 trees.

My grasshopper code works, but it requires me to manually copy the code for each tree type, how can the same result be achieved in one go?

In the above image, the same code is repeated three times, one for each tree type, but i want to add more types of trees in the future, more than 10.

Population Scatter.gh (376.2 KB)

It would be a bit easier if the three trees all had trunks. ‘Entwine’ is the essential component to join data streams. The right data structure I always find a bit challenging… The ‘Longest List’ matches the transformations so you get the right number for each tree.

Population Scatter entwine.gh (146.0 KB)

Nice!

I reconstructed for myself but could not make any real improvements. I did learn, though, that composite transformations are much faster than sequentially transforming geometry:


Multi-transform VR 1.gh (171.9 KB)

I tied the result to a single seed and implemented a Gene Pool component.

Group the geometry and it doesn’t matter.

Thank you, entwine is the way to go in this case i believe

Thanks Volker, this solution is really clean