Wow! It works! Thanks for that. When I finish I'll make a small manual how I made it.
The last problem with Spindle speed override.
function SROPlus()
local inst = mc.mcGetInstance()
local SRO = mc.mcCntlGetSRO(inst)
if SRO == 250 then
mc.mcCntlSetLastError(inst, "Can't increase SRO anymore.")
else
local NewSRO = (SRO + 10)
mc.mcCntlSetSRO(inst, NewSRO)
end
end
--SRO is read from 0 - 250
--SRO - 10%
function SROMinus()
local inst = mc.mcGetInstance()
local SRO = mc.mcCntlGetSRO(inst)
if SRO == 0 then
mc.mcCntlSetLastError(inst, "Can't decrease SRO anymore.")
else
local NewSRO = (SRO - 10)
mc.mcCntlSetSRO(inst, NewSRO)
end
end,
Very similar code doesn't work and sends error message ( in attachment )
When I write the name of mcCntlGetSRO function if script editor it even doesn't change its color to pink as it was with mcCntlGetFRO.