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?
Thank you!
$\begingroup$
$\endgroup$
3
1 Answer
$\begingroup$
$\endgroup$
2
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 ...
result with selection:
result without selection:
to get the 3 and 7th you do this for selection:
Note: this is an index compare. So 3 and 7 are in reality 4 and 8 !
-
$\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$– ChrisCommented Jan 4, 2022 at 22:40
modulo 2
? I see theModulo
enum in the Math node but I'm not sure how to use this to control which vertices receive an instance. $\endgroup$