Divide this grid into 10 groups - let’s imagine for this example that each of the groups represent a different colour - but not necessarily be divided equally.
The selection of squares from within the grid needs to be done randomly, in order to achieve a random distribution of coloured squares.
Adjust the weight of each group with some number sliders - i.e. if I want more or less blue squares, I want to be able to adjust this separately.
Points 1-3 I’ve been able to do, using the Dispatch tool to split the grid, but I don’t know how to adjust the weights. Any advice on how best to approach this?
the gene pool allows you to weight the different cell groups
consider that the A part of definition is sort of bad
somehow when doubles are transformed into integers and some rounding happens, we need to find a culprit to make the final total number of cells to be = to the total number we have generated
in this case the culprit is item at index 0, that gets recalculated as (total number of cells) - (sum of all the other used cells)… there for sure will be smarter methods, this was the fastest shortcut I could think about
this slider allows you to shuffle the cells differently:
But how would I be able to bake this (dividing the branches) without the number tags or to a simple graphic, where I could connect the squares of the same group together? Random tiling_1.gh (22.7 KB)
Just delete the text tag component, you won’t see the numbers then. @inno just used this to visualize the different groups.
To isolate the geometry from one of the data tree branches, use the Tree Branch component.
You can consider baking each group to a different layer. The Human plugin has some useful tools in this regard (Create Layer, Create Attributes, and Bake Geometry components)