1
$\begingroup$

Currently in Geometry Nodes, the Instance on Points mode maps instances to points uniformly throughout an object (by vertices or samples). Is it possible to specify which points/vertices to use for Instance on Points? For example, if a curve has 5 vertices, could I assign an instance to the 1st, 3rd, and 5th vertices respectively? Instances on Points Thank you!

$\endgroup$
3
  • $\begingroup$ Just connect index node to modulo 2 and put it in selection. $\endgroup$
    – Chris
    Commented Jan 4, 2022 at 22:22
  • $\begingroup$ Hi @Chris, thank you for the reply. Could you please explain modulo 2? I see the Modulo enum in the Math node but I'm not sure how to use this to control which vertices receive an instance. $\endgroup$ Commented Jan 4, 2022 at 22:27
  • 1
    $\begingroup$ Perhaps there's useful information in blender.stackexchange.com/questions/214160/… $\endgroup$
    – james_t
    Commented Jan 4, 2022 at 22:39

1 Answer 1

4
$\begingroup$

i mean like this: index increases from 0 to number of points. Modulo 2 makes out of that a list of 0,1,0,1,0 ...

enter image description here

result with selection:

enter image description here

result without selection:

enter image description here

to get the 3 and 7th you do this for selection:

enter image description here

Note: this is an index compare. So 3 and 7 are in reality 4 and 8 !

$\endgroup$
2
  • $\begingroup$ Thank you so much for the explanation, scene file, and screenshots. It's very helpful. I was hoping to be more specific about which vertices. I used 1, 3, and 5 as an example, but I'd also like to just be able to target more arbitrary indices such as 3 and 7 (so something not requiring math). Do you have any advice for that? $\endgroup$ Commented Jan 4, 2022 at 22:38
  • 1
    $\begingroup$ you can compare the index with whatever values you like. So you could compare with 3 and 7 and maximum that result and put it in the selection. If my answer helped you, please check the checkmark left to my answer. thanks. $\endgroup$
    – Chris
    Commented Jan 4, 2022 at 22:40

You must log in to answer this question.

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