mc.mcCntlSetRRO(inst, percent)
Put a global RRO control variable in your screen laod script
masterRRO = 0 -- let 0 equal the normal state where the potentiometer controls both the FRO and RRO.
Then in a button left up event script for the 25% button:
inst = mc.mcGetInstance()
local rc = mc.mcCntlSetRRO(inst, 25);
if (rc ~= mc.MERROR_NOERROR) then
mc.mcCntlSetLastError(inst, "RRO to 25% failed!!!")
end
masterRRO = 25 -- set the global variable.
Now, you will probably have to do some work in whatever code evaluates your potentiometer and make it NOT adjust the rapid rate override while one of your % buttons is in effect. Test for masterRRO == 0 for normal FRO/RRO operation and masterRRO ~= 0 for keeping the pot from affecting RRO.
Steve