Craig, thanks for the info, I have tried
local hReg=mc.mcRegGetHandle(inst, mc.VAL_CYCLE_TIME) but received the following error
---------------
Lua: Error while running chunk
C:\Mach4Hobby\ScreenScript.lua:961: wxLua: Expected a 'string' or 'wxString' for parameter 2, but got a 'number'.
Function called: 'mcRegGetHandle(number, number)'
01. mcRegGetHandle(number, string, lightuserdata)
stack traceback:
[C]: in function 'mc.mcRegGetHandle'
-------------------
looks like the API calls for string,
hReg, rc = mc.mcRegGetHandle(
number mInst,
string path)
------------
so I tried the following, but still only get a value of 0.0
local inst= mc.mcGetInstance();
local hReg=mc.mcRegGetHandle(inst, "mc.VAL_CYCLE_TIME")
local val=mc.mcRegGetValue(hReg)
wx.wxMessageBox(tostring(val))
-----
Bob