1

Selecting specific indexes for instances on points node.

I know a can use the Selection option on the Instances on Points node to choose the indexes to use, but how can I choose more than just two specific indexes. (I would like to choose the indexes 0,2,3,7,8,13,121)

The thing I've tried is boolean's and that seems to stop working after 2 indexes.

img1

Is there a list node where I could just type the numbers in to use that as the index selection?

Rick T
  • 4,391
  • 1
  • 20
  • 64
  • Booleans are working with any count with me. How are you connecting the booleans? These aren't connected in the image in your question. – Hulifier Apr 29 '22 at 19:10
  • @Hulifier I didn't have issues connecting the geometry so I just left that out, it was the selecting multiple specific indexes I had the issues with. Are several + Boolean's nodes the only way to do this? – Rick T Apr 29 '22 at 19:38
  • 1
    What @Hulifier probably means, is, that you should connect the output of the upper Or node to the input of the lower one. And you should connect the output of the lower Or node with the Selection input. – André Zmuda Apr 29 '22 at 19:45
  • https://blender.stackexchange.com/q/249570/60486 https://blender.stackexchange.com/q/277610/60486 https://blender.stackexchange.com/q/275939/60486 https://blender.stackexchange.com/q/274666/60486 – Markus von Broady Jan 12 '24 at 12:18

2 Answers2

3

As already mentioned, you could connect the output of the upper Or node to the input of the lower one. And you should connect the output of the lower Or node with the Selection input.

A completely different approach could be, to use a meshline object as a selection mask. In this example, I created a 1x10 grid, that I use as selection mask. If the z-position of one point is > 0, this means "on".

demo 1

demo 2

A second object has the following Geometry Nodes net attached.

node net

This instantiates 10 icospheres. Depending on the positions of the vertices of the input object, the icospheres are "turned on" or "off". The above mentioned grid is used as this input object.

André Zmuda
  • 2,364
  • 5
  • 15
2

You can select multiple indexes by feeding the next boolean node with the previous.

Selection by boolean comparisons with index

As far as my search goes, there's no lists in Geometry nodes. Maybe there's a hack workaround with python? I don't know until that moment.

Hulifier
  • 6,048
  • 1
  • 8
  • 24