Can someone test this? I am trying to get and set of ToolPath colors... not having any luck, sometimes the set works, but mostly the Get will Crash the lua interpreter.
Can someone look over this code.
function TestFunc()
local inst = mc.mcGetInstance();
local rc = 0;
local OldTopColor = 10485760;
local OldBottomColor = 8404992;
local rc = 0;
rc, OldTopColor, OldBottomColor = mc.mcToolPathGetBackColor(inst);
mc.mcToolPathSetBackColor(inst, 16777215, 0);
--mc.mcToolPathUpdate(inst);
mc.mcToolPathGetBackColor(inst, OldTopColor, OldBottomColor);
--mc.mcToolPathUpdate(inst);
local dummy = 0;
end
if (mc.mcInEditor() == 1) then
TestFunc();
end