How does the Set Material Index node work? I placed it after the generated cone mesh, but it does nothing..
- $\begingroup$ Just found a bug in the nodes as well... Will post a link to a bug report later once done... $\endgroup$clankill3r– clankill3r2024-05-01 20:48:59 +00:00Commented May 1, 2024 at 20:48
- $\begingroup$ 3 years later... the stupidest behaviour of material index node still a thing... $\endgroup$Bicukow– Bicukow2025-11-06 09:15:51 +00:00Commented Nov 6 at 9:15
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$Bicukow– Bicukow2022-07-23 10:32:20 +00:00Commented Jul 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$2022-07-23 11:19:22 +00:00Commented 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$Bicukow– Bicukow2022-07-23 10:31:40 +00:00Commented Jul 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_t– james_t2022-10-09 17:12:39 +00:00Commented Oct 9, 2022 at 17:12

