function M162(hParam) if (hParam ~= nil) then local inst = mc.mcGetInstance(); local varFlag local varValue local message -- typo in "SV_LOACL_VARS" will probably be fixed in future release! for i=mc.SV_LOACL_VARS_START,mc.SV_LOACL_VARS_END do varFlag = mc.mcCntlGetLocalVarFlag(inst, hParam, i) varValue = mc.mcCntlGetLocalVar(inst, hParam, i) message = 'Variable id ' .. i if (varFlag == 0.0) then message = message .. ' not set!' else message = message .. ' = ' .. tostring(varValue) end mc.mcCntlSetLastError(inst, message); end else mc.mcCntlSetLastError(inst, 'ERROR: handle == nil'); end end if (mc.mcInEditor() == 1) then M162() end