How to do trim that has black recesses

I'd thought about it but was wondering how its done originally. There's no way the reproductions are done by hand. I was wondering if where the black is recessed that the whole thing isn't painted and then the ridges buffed.