0

enter image description here

I'm pulling 1 object at a time from a small collection to instance onto points in a scene. And I want those to arrange themselves randomly on the grid points as shown in the image. That's easy enough.

But it's important that while the points chosen to instance the object, and the object chosen both remain random, the exact number of times the chosen object is instanced is controlled and limited. Likely to be around 1 instance up to 10 instances. This will basically be used to visualize a data input so the grid structure and the number of instances will need to be controlled. For that reason, none of these "scattering grass" tutorials are helping me.

So for example the results I'm seeking are 10 Cubes distributed randomly. Or 6 monkes. or 7 cylinders.

I'm assuming theres some way to apply some math node magic to that Random Value node but nothing Ive tried has worked so far!

Does anyone know how to do this??

Joe Bowers
  • 33
  • 4

1 Answers1

1

you could e.g. use this node tree:

enter image description here

enter image description here

result:

enter image description here

Chris
  • 59,454
  • 6
  • 30
  • 84
  • This is amazing thank you! any advice on how to get the points that the geometry is distributed to be constrained to the points of the grid rather than just randomly on that surface? – Joe Bowers Aug 06 '22 at 20:55
  • I think instead of distribute points on faces you can use the initial mesh vertices as 'points' – Allen Simpson Apr 06 '23 at 16:25