Should the code be as follows?
function m111 ()
local inst = mc.mcGetInstance ()
local YShift = 10
mc.mcCntlSetPoundVar (inst, mc.SV_HEAD_SHIFT_Y, YShift)
--X axis
local inst = mc.mcGetInstance ()
local XShift = 10
mc.mcCntlSetPoundVar (inst, mc.SV_HEAD_SHIFT_X, XShift)
end
.
if (mc.mcInEditor () == 1) then
m111 ()
end