yes i did!
mc.mcCntlMdiExecute(inst, 'G10 L20 P0 X2.0 Y2.0 Z0')
that is the important line, where x and y are the offset spindle vs laser
i have attached my test gcode too.
let me know if you have any questions
https://www.youtube.com/watch?v=gCM2R83E3gMM120
inst = mc.mcGetInstance()
mc.mcCntlMdiExecute(inst, 'G10 L20 P0 X2.0 Y2.0 Z0')
mc.mcCntlSetLastError(inst,'Laser Head Shift Active')
M121
inst = mc.mcGetInstance()
mc.mcCntlMdiExecute(inst, 'G10 L20 P0 X0 Y0 Z0')
mc.mcCntlSetLastError(inst,'Laser Head Shift Deactivated')