How to create cube from voxels and control the ratio of them?

Hi,
I would like to create a cube that is going to be build form a lot of smaller cubes. I want to split those small cubes to two (or more) lists that would be represented with diffrent colour.

I did it with random split list component and in a way it is what I want but I would like to control the ratio of those colored cubes. For example I would like to have 90% green cubes and 10% of brown cubes. So my question is how can I do it? is there a plagiun that would help me? Any help would be appreciated.

This could be one way.


RandomSplit_re.gh (11.8 KB)

3 Likes

Thanks HS_Kim This is exactly what I wanted.