Materials to Vertex Groups?

Hello friends. I’m wondering if anybody knows of a script or tool that would automatically take every material on an object and create a vertex group from the verts assigned to that material. Any ideas or suggestions would be most welcome.

Bit tedious to set up, until we have loops, but geonodes can do this.

Hope that helps.

1 Like

Hey AC, thank you so much for this! It’s very helpful. It will also get me to dig into geo nodes and the spreadsheet, some things I need to do.

I can’t quite read the text on these nodes in your image, so I’ll start digging. Thanks again!

Material Selection, Seperate Geometry, Store Named Attribute. From left to right

1 Like

1 Like

Many thanks

Many thanks!

Sorry to come back, but I think there might be something I’m missing.

I’m trying it like in the diagram with just one material from the mesh. It creates a group that I can see in the spreadsheet. But there is no listing in Object Data Properties/Vertex Groups list. Shouldn’t it be listed there?

Again, any help or advice is most welcome.


You can overwrite already added Vertex Groups like this. But you cannot create them from inside GN afaik.

But, depending on how you want to use the information, example…

In the shader editor.