568
« on: January 30, 2016, 04:40:43 AM »
To do something like this you would need to script your own function, heres a start for ya.
local inst = mc.mcGetInstance() -- declare our instance
local CurInc = mc.mcProfileGetInt(inst,"Preferences","JogIncSet",0) --make a new setting in profile to hold our current inc number
CurInc = CurInc + 1 -- increment our CurInc by 1
if CurInc > 10 then CurInc = 1 end -- if our CurInc is greater than 10 then go back to 1
local SetInc = mc.mcProfileGetDouble(inst,"Preferences","JogInc"..CurInc,0.00) -- fetch our inc value from the profile JogInc + 2 say = [Preferences][JogInc2]
mc.mcJogSetInc(inst, mc.X_AXIS, SetInc) -- set inc for axis
mc.mcJogSetInc(inst, mc.Y_AXIS, SetInc) -- set inc for axis
mc.mcJogSetInc(inst, mc.Z_AXIS, SetInc) -- set inc for axis
mc.mcProfileWriteInt(inst,"Preferences","JogIncSet",CurInc) --set our profile to new CurInc
DazTheGas