# Geo Nodes / Frames - pick from random object collection, distribute on surface

Hi all,

Just getting started learning Geometry Nodes / Frames and am trying to figure a few things out.

My goal is to distribute collections as instances on objects.

1. How can I add a Collection to a Geometry Node? (Or a stand-alone object?)

2. Is there a way to choose randomly from different collections?

thanks!

Hi
1- use the â€ścollection infoâ€ť node to enter a collection in a GN tree.

2- here I have 2 collections one has 3 red round things the other 3 blue cube-ish things
I separate the points of the grid randomly and use the selection to instance one collection (randomly) on the points and the inverted selection to do the same with the other collection.
There are probably other ways to do it.

Edit:
The range of the random objects in each collection depends on the amount of objects in each collection in this case 0, 1 or 2

Edit 2: sorry the random node for the grid point selection could simply be 0-1 ( yes or no )
If you increase the max or decrease the min it will bias the selection.

Edit 3

I have just realised that you probably want to distribute the objects randomly on the faces instead of evenly on the points of the mesh. In which case you can use the distribute points on faces node.

You can also choose to assign points to different collections with the compare node in this example I have 2 collections and 2 options.

As I said there are probably other way to do all this, I hope this gives you ideas.

2 Likes

Nice!! Going to try this out. Thanks so much!

Hi again @DNorman -

(editâ€¦ nevermind)

Wasnâ€™t sure where to put the geometry nodesâ€¦ as it is, I found I can create Node arrangement attached to a cube, for example, and simply hide the cube.

Experimenting nowâ€¦

cheers

Ok, this is insanely fun. Puzzling, but funâ€¦

1. Why does it go -3 to 3 rather than 1 to 3?
2. How do we get it to fill all spaces with something?

Back to experimentingâ€¦

Sorry for the late reply I have been working.

Yes that was a mistake thus my â€śedit 2â€ť

Here is a new screenshot of the first setup (0-1.)

With this first setup there should always be one random object on every point/vertex of the grid.

The second setup distributes objects randomly on faces with a density factor and there will be some spaces with lower values, the higher the density factor the more objects and less spaces there will be.
When using random distribution on faces you will find that some objects will overlap. This is not so easy to avoid you could take a look at this thread: