Hello everyone,
I wanted to set the value of 3 axes to 0, so I put the following script in Screen Lood Script.
I want to operate with a switch.
However, as shown in the picture, an error was displayed.
Can anyone please tell me the solution? Please.
Script:Zero All
[mc.ISIG_INPUT7] = function (state) --Zero All
InputZeroAll()
end,
------------------------------------------------------------------------------------
--Zero All
---------------------------------------------------------------
function InputZeroAll() --This will do Zero All button push
ZeroAll()
local rc = mc.mcAxisSetPos(inst, mc.X_AXIS,0.0);
rc = mc.mcAxisSetPos(inst, mc.Y_AXIS,0.0);
rc = mc.mcAxisSetPos(inst, mc.Z_AXIS,0.0);
mc.mcCntlSetLastError(inst, "Input Zero All")
end