At the end of your homing script add:
rc = mc.mcToolSetCurrent(inst,0)
This will set the current tool to tool zero but it will not set the offset. There is an api call to get the current offset but not one to set it
In theory you should be able to set the register for that which is supposed to be #2032 and the tool #2029 according to some docs that spell out the pound variables. However the following code always shows zero for each entry and when you display the variables through the diagnostics menu those values don't change so I don't know what are the real registers currently. build 4612.
local inst=mc.mcGetInstance()
local val
local rc = mc.mcToolSetCurrent(inst,2)
val,rc=mc.mcCntlGetPoundVar(inst,2029)
val,rc=mc.mcCntlGetPoundVar(inst,2032)
rc = mc.mcToolSetCurrent(inst,0)
val,rc=mc.mcCntlGetPoundVar(inst,2029)
val,rc=mc.mcCntlGetPoundVar(inst,2032)
HTH
RT