Ok i am finally back to working on the Mach4.
I am having a problem with what i thought was a simple code.
I do not want to use the sliders for speed adjustments so i made a button to increase and one to decrease the FRO.
When i click the button the DRO flicks the change then immediately back to what it started at.
Here is the code.
local val = scr.GetProperty('droCutSpeed', 'Value');
val = tonumber(val) + 10;
local maxval = 300
if (tonumber(val) >= tonumber(maxval)) then
val = maxval;
end
scr.SetProperty('droCutSpeed', 'Value', tostring(val));
I am sure it is something simple i am missing but I have no idea what.
Thanks,
Bill