0
$\begingroup$

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??

$\endgroup$

1 Answer 1

1
$\begingroup$

you could e.g. use this node tree:

enter image description here

enter image description here

result:

enter image description here

$\endgroup$
2
  • $\begingroup$ 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? $\endgroup$
    – Joe Bowers
    Aug 6, 2022 at 20:55
  • $\begingroup$ I think instead of distribute points on faces you can use the initial mesh vertices as 'points' $\endgroup$ Apr 6, 2023 at 16:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .