I'm using build 6417. I cannot read or write to registers.
--Reg Read/Write Test
function m200()
local inst = mc.mcGetInstance()
local SpinRPM = mc.mcRegGetHandle(inst, "iRegs0/SpindleRPM")
local SpinRPMVal = mc.mcRegGetValue(SpinRPM)
mc.mcRegSetValue(SpinRPM, 50)
end--m200()
if (mc.mcInEditor() == 1) then
m200()
end
I copied the path right from the regfile diagnostics to make sure I had the path correct.
This is the same code I'm using on build 4162 and it is no longer working on this newer version.
I'm at a loss here, anyone else run into this issue?