View Single Post
Old 09-16-2020, 02:51 PM   #9
Coachz
Human being with feelings
 
Coachz's Avatar
 
Join Date: Oct 2010
Location: Charleston, SC USA
Posts: 9,289
Default

So what code do I need to enable grid lines ? I'm not getting how config variables work.

-- enable grid lines
retval = reaper.SNM_SetIntConfigVar( "projshowgrid", 1)


projshowgrid

Description:
Several Snap/Grid-Settings, as set in Snap/Grid Settings located in menu Options -> Snap/grid -> Snap/grid settings
It is an integer-bitfield.

&1=0, Show grid, line spacing-checkbox(off) - unchecked
&1=1, Show grid, line spacing-checkbox(on) - checked

&2=0, Snap Media items to grid(off) - unchecked
&2=1, Snap Media items to grid(on) - checked

&4=0, Snap Cursor to grid(off) - unchecked
&4=1, Snap Cursor to grid(on) - checked

&8=0, Snap Selection to grid(off) - unchecked
&8=1, Snap Selection to grid(on) - checked

&16=0, Snap Media items to selection/markers/cursor(off) - unchecked
&16=1, Snap Media items to selection/markers/cursor(on) - checked

&32=0, Snap Cursor to selection/markers/cursor(off) - unchecked
&32=1, Snap Cursor to selection/markers/cursor(on) - checked

&64=0, Snap Selection to selection/markers/cursor(off) - unchecked
&64=1, Snap Selection to selection/markers/cursor(on) - checked

&128=0, Snap media items to nearby media items up to(off) - unchecked
&128=1, Snap media items to nearby media items up to(on) - checked

&256=0, Enable snapping(on) - checked
&256=1, Enable snapping(off) - unchecked

&512=0, Use the same grid division in arrange view and MIDI editor(also in MIDI Editor -> Options)(off) - unchecked
&512=1, Use the same grid division in arrange view and MIDI editor(also in MIDI Editor -> Options)(on) - checked

&1024=0, Snap to grid at any distance(off) - unchecked
&1024=1, Snap to grid at any distance(on) - checked

&2048 and &4096, Media items snap at-dropdownlist

0 0, Mouse-position dependent
1 0, Only snap at start/snap offset
0 1, Snap both start/end

&8192=0, Snap cursor to edges of media items on any track(off) - unchecked
&8192=1, Snap cursor to edges of media items on any track(on) - checked

&16384=0, unknown
&16384=1, unknown

&32768=0, Grid snap settings follow grid visibility(on) - checked
&32768=1, Grid snap settings follow grid visibility(off) - unchecked

&65536=0, unknown
&65536=1, unknown

&131072=0, Snap to project sample rate(off) - unchecked
&131072=1, Snap to project sample rate(on) - checked
Coachz is online now   Reply With Quote