1
$\begingroup$

I am scattering a collection of objects on a mesh through the Instances on Points node using Geometry Nodes. The Collection Info node is going into the Instance slot on the Instances on Points node. The checkbox for Pick Instance is turned on.

How would I be able to control how much of each instance is being 'picked'?

$\endgroup$
0

1 Answer 1

0
$\begingroup$

The instances of a collection are selected according to the order in which they are stored in the collection.

This order is determined by the name of the object (alphabetical sorting).

So if you have the following objects, they have the following index

Name Index
Cube 0
Cube.001 1
Cube.002 2

If you have now activated Pick Instances and use a value at Instance Index, always the object with the corresponding index from your collection will be used.

So to be able to selectively or with a certain probability use objects from your collection, you would have to pass the corresponding values to the Instance Index input.

enter image description here

For example, if a value is passed that exceeds the number of objects in your collection, the count starts again at $0$, so your first object is selected.

This is illustrated in the following table:

Instance Index Name Object Index
0 Cube 0
1 Cube.001 1
2 Cube.002 2
3 Cube 0
4 Cube.001 1
5 Cube.002 2
$\endgroup$
4
  • 1
    $\begingroup$ I believe, OP asked about a slightly different thing, like in this question: blender.stackexchange.com/questions/261922/… $\endgroup$
    – Crantisz
    Feb 17, 2023 at 19:09
  • 1
    $\begingroup$ @Crantisz Ah, OK, you might be right! I'll leave the answer anyway ...maybe it will help someone else. $\endgroup$
    – quellenform
    Feb 17, 2023 at 19:10
  • $\begingroup$ Crantisz answered my question. 😄 $\endgroup$ Feb 17, 2023 at 19:13
  • $\begingroup$ @Crantisz Sorry, I didn't mean to diminish the quality of your existing answer by choosing another duplicate as you suggested initially. I just wanted to target as a moderator the answer that explained the topic in more detail. Thank you for your understanding. $\endgroup$
    – quellenform
    Feb 17, 2023 at 19:45

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