756
« on: May 29, 2015, 07:25:57 AM »
when you are testing in the screen have the log running it shows what happening to what ever it is you are doing its one way to debug you can have something run fine in editor but not do anything on screen if nothing shows up on the log nothing is getting through or if something is coming up on the history and its a bad thing the problem can show up in the logging.
also if you have values set in the regfile and you don't think they are working get popabears, DebugVarValueTest or use this in the screen load script
function GetRegister(regname)
local inst = mc.mcGetInstance()
local hreg = mc.mcRegGetHandle(inst, string.format("iRegs0/%s", regname))
return mc.mcRegGetValueString(hreg)
end
and have a button on screen with this in it you just change "Test1" to your reg name it works fine to test any reg you have added to the regfile
regval = GetRegister("Test1")
wx.wxMessageBox(regval)