111
Mach4 General Discussion / Re: activate script on button from script
« on: September 28, 2021, 11:15:45 AM »
You are missing the 'inst' from mcCntlGetState.. see below
Code: [Select]
function WaitForIdle()
local inst = mc.mcGetInstance()
local state = mc.mcCntlGetState(inst)
if (state == mc.MC_STATE_IDLE) then
return true
end
return false
end