Sample Material Node
Currently there's no way to get a material from a given geometry in GN. It's something so lacking for many materials setups :(
Here's a mockup of how it would look like, obviously it could be more complex and advanced, but this is a good start.
4 Comments
There was a "Material by Index" node in development, but it was on the old dev site and I can't find it any more. I guess it's lost to time ;(
I've been wantng a node like this a long time, because currently there's no way to tell GN "get me the first material in the material list of the object".
Yeah I remember something similar but I also couldn't find it so I made a feature request
I've submitted a PR for this: projects.blender.org/blender/blender/pulls/144628
It would have come in handy for me too. A material slot counter would also be useful.