Add additional behaviour when using vertex paint mode

Hi!

I am using vertex paint mode to color my low poly mesh.

Additionally I need to set a metallic and a roughness value when the color is brushed on a vertex. The metallic and roughness values are stored in a RoughnessUVMap and a MetallicUVMap (so that they are exported via fbx and can easily read from a game engine).

How can I for example create my own brush via python and implement this behaviour?

Thanks!

I’m not familiar with this part of Blender, but I assume the brush system is implemented in C (native code), and only the panel UI is Python-scripted. I thus doubt that it’s possible to extend brushes with Python.