Convert Materials to Vertex Groups

This Python script automates the process of converting material assignments into vertex groups on a mesh. It evaluates the faces assigned to each material slot and generates corresponding vertex groups, allowing users to quickly create masks for modifiers, rigging, or geometry nodes based on existing material boundaries.