1
$\begingroup$

I have a curve that has a geometry nodes modifier applied. I noticed that the resulting mesh has no material. What do I need to do so that setting the material on the input object sets the material on the generated geometry?

Note 1: I can get this "working" using a material input node, but to set the material for this particular object, I would have to go digging into the modifier properties. That's different from how I would change the material for any other object. I very specifically don't want that.

Note 2: this seems to be a duplicate of "Set Material Index" node not working, but there is no working answer there.

Just like that poster, I tried the Set Material Index node, and it doesn't seem to be doing anything.

I'm using Blender 3.5.1.


enter image description here

(Note that the viewport is in Material Preview mode.)

$\endgroup$
4
  • $\begingroup$ Please add a blend file showing the minimum number of nodes so that we can see what the problem is. $\endgroup$ Commented Jul 30, 2023 at 9:46
  • $\begingroup$ ...just add a Set Material node. $\endgroup$ Commented Aug 2, 2023 at 15:41
  • $\begingroup$ @quellenform, and how do I get the material to be set? Specifying the material in the node is unacceptable. Specifying it as a node input is undesirable, as stated in the question. Please show an example of this approach working. $\endgroup$ Commented Aug 2, 2023 at 17:22
  • $\begingroup$ This can only be solved with Group Inputs: i.sstatic.net/SoR1y.png If you create a geometry in Geometry Nodes, it must also be assigned a material in Geometry Nodes. There is only one special case, how you can avoid this: blender.stackexchange.com/a/279168/145249 Here I take over the material previously assigned to the object with a trick, but even this has its limits. $\endgroup$ Commented Aug 2, 2023 at 17:32

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.