A while back I wanted to engrave a shift pattern on a shift knob for my son and wrote up a little app to convert the flat pattern X-Y g-code to a spherical pattern. That’s the only time I used it. It may or may not do what you want, but you are welcome to give it a try.
Needless to say proceed with caution and at your own risk.
Al Lenz
'INSTRUCTIONS: Enter dia of sphere and burr (ball end mill).
'Touch off burr on top surface of sphere.
'Cut will be 1/2 burr dia, (enter zero to manually set depth).
'Pattern must be centered (X0, Y0) on sphere centerline
'Z dimensions will be adjusted for curvature of sphere
'Limit is +/- 45 deg of sphere upper surface
'Break long straight lines into short segments