How does the Set Material Index node work? I placed it after the generated cone mesh, but it does nothing..
2 Answers
Just briefly for further explanation:
Set Material
defines a new material for the selected geometry. This node is basically used when a geometry is created with Geometry Nodes, because for the geometry created in this way there is no assignment to a material before.
However, if you use an existing geometry (for example, with Object Info
), then you can use the Set Material Index
node to apply a specific material from the previously assigned materials to the geometry (or parts of it).
-
$\begingroup$ That's what im trying to do. i want to use an existing material on my geometry $\endgroup$– BicukowJul 23, 2022 at 10:32
-
1$\begingroup$ @AlexanderBicukow I understand. But your existing material will only be applied to the geometry you provide via Group Input, but not to the geometry you create inside the Geometry Nodes (Cone). $\endgroup$– quellenform ♦Jul 23, 2022 at 11:19
You want the Set Material node, not the Set Material Index node:
You might also find this stackexchange Answer helpful.
-
$\begingroup$ but i want to use an existing material on mesh, without "defining" a new one with "set matrial node" $\endgroup$– BicukowJul 23, 2022 at 10:31
-
1$\begingroup$ @AlexanderBicukow -- this does not create a new material; it only lets you reference one of the existing Materials you had assigned to an existing material "slot" $\endgroup$– james_tOct 9, 2022 at 17:12