Old 07-25-2017, 03:44 PM   #1
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,093
Default SetProjectGrid() also enables grid lines ?

Just wondering, is it correct / intended behaviour that SetProjectGrid() also enables grid lines ?

I'd say no at first thought, as these are actually two diffrent things or ?
(Description of that function says "Set the arrange view grid division" and not "Set the arrange view grid division and enable grid lines")



To clarify:
I'm not trying to nitpick for nitpicking's sake here. I was surprised of this behaviour when doing a script where I don't want that grid lines get enabled when setting grid division.
nofish is offline   Reply With Quote
Old 07-26-2017, 07:47 AM   #2
RobU
Human being with feelings
 
RobU's Avatar
 
Join Date: Sep 2009
Posts: 863
Default

Slight OT...

The function your using, reaper.SetProjectGrid() doesn't appear to be listed on the API page -
https://www.reaper.fm/sdk/reascript/...ipthelp.html#l ??

Where did you get the function name from, and do you know if there is a corresponding reaper.GetProjectGrid() ?


I've been looking for exactly that for another script for a while now... :|

Thanks
__________________
Return of the Dub Cadet - https://open.spotify.com/album/2t98A...lQ&dl_branch=1
RobU is offline   Reply With Quote
Old 07-26-2017, 08:00 AM   #3
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,093
Default

The function name I got from another script I'm modifying, but it's also listed at X-Raym's API doc.

https://www.extremraym.com/cloud/rea...SetProjectGrid

No idea why it's not listed on the official API page.

And yes, there's also GetSetProjectGrid()

https://www.extremraym.com/cloud/rea...SetProjectGrid


edit:
Looks like the online API doc isn't regularly updated or even maintained anymore maybe.
But if you run Actions -> "ReaScript: Open ReaScript documentation (html)..." you get all of the currently available functions, including the above.

Last edited by nofish; 07-26-2017 at 08:12 AM.
nofish is offline   Reply With Quote
Old 07-26-2017, 08:20 AM   #4
RobU
Human being with feelings
 
RobU's Avatar
 
Join Date: Sep 2009
Posts: 863
Default

Thanks nofish, much appreciated.
__________________
Return of the Dub Cadet - https://open.spotify.com/album/2t98A...lQ&dl_branch=1
RobU is offline   Reply With Quote
Old 07-26-2017, 08:33 AM   #5
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,093
Default

You're welcome.

Now someone answer my original question please.
nofish is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.