How to dynamically paint cycle materials?
You can use an image texture that you paint on as a stencil between shaders, and this acts like a layer mask in Photoshop. You can also set up an attribute node and use vertex paint, but the effect there is limited to your geometry.