Yes, I've actually try both setting both nothing changes.
Here's the tool change macro
function m6()
local inst = mc.mcGetInstance()
local selectedTool = mc.mcToolGetSelected(inst)
local currentTool = mc.mcToolGetCurrent(inst)
if selectedTool == currentTool then
return
mc.mcCntlSetLastError(inst, "Current tool == Selected tool so there is nothing to do")
else
mc.mcCntlGcodeExecute(inst, "G90 G53 G0 Z0.0");--Move the Z axis all the way up
local changetoo = mc.mcToolGetDesc (inst,selectedTool)
wx.wxMessageBox ("Change to tool number "..selectedTool.." "..changetoo.." and press ok to continue")
wx.wxMessageBox ('Toolchange finished')
end
end
if (mc.mcInEditor() == 1) then
m6()