Hi!
I might be overthinking the problem, which I tend to do, but here's what I made:

Without the additional special channel that's later used for the layer-mask in Painter however, it looks like this:
(the mask of the folder whose preview isn't being rendered just halves the material to show what the underlying material looks like)So I used the custom exported channel to supply the mask, so that metallic, roughness, etc are masked as well:

Mask:

Maybe this could be done more efficiently? I don't know how though, unless Painter supports a mask-channel that automatically get's used? Could be a nice feature maybe?