View Single Post
Old 09-17-2020, 05:07 AM   #14
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC USA
Posts: 9,299
Default

Quote:
Originally Posted by nofish View Post
That's it but you also need a
Code:
reaper.UpdateArrange()
to trigger a redraw.
(For a more detailed rundown about config vars see here.)

edit:
Nah, this is wrong sorry, as it turns all the other bits off.
This should be the one:
Code:
enableOK = reaper.SNM_SetIntConfigVar("projshowgrid", reaper.SNM_GetIntConfigVar("projshowgrid", -666)|1) -- bitwise OR, set bit
So the -666 is the return value from getting and then you are ORing it with the one. And if you wanted to set another property you would OR it with whatever its associated value was like maybe 256 right?
Coachz is online now   Reply With Quote