14
$\begingroup$

This is a very simple question that I cannot seem to find an answer to online. All I want to do is make a selection of a single face in a mesh to apply a material to it. The example image shows a red cube with its GN setup. How do I make that only one face of the mesh is red? enter image description here

$\endgroup$

1 Answer 1

30
$\begingroup$

Select faces by index.

enter image description here enter image description here enter image description here

Select with distance to another object's geometry.

enter image description here enter image description here

$\endgroup$
4
  • $\begingroup$ What would be the node setup for a manual input to select multiple faces? It would be convenient I think to be able so specify it like "0, 1, 2" or perhaps more programmer's style: [0,1,2] to select the faces with equivalent index. $\endgroup$ Jun 5, 2022 at 13:19
  • $\begingroup$ @MikedeKlerk Unfortunately it's not possible to use programmatic expressions of this kind in GN (yet). The way to do it would be to chain "AND" boolean nodes and "EQUAL" compare nodes $\endgroup$
    – Gorgious
    Jun 5, 2022 at 15:00
  • $\begingroup$ what is the equal node $\endgroup$
    – stackers
    Mar 14 at 18:52
  • 1
    $\begingroup$ @stackers Utilities > Math > Compare node $\endgroup$
    – Gorgious
    Mar 15 at 7:13

You must log in to answer this question.

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