Old 08-27-2019, 03:39 AM   #1
SmajjL
Human being with feelings
 
Join Date: Nov 2013
Posts: 2,779
Default v5.983rc1 - August 26 2019

  • + Playback: improve scrolling-by-action behavior when auto-scrolling view during playback is enabled
  • + Preferences: remove outdated scrolling option
  • + Project bay: fix comps view (5.975 regression) [t=222183]
  • + ReaScript: Main_openProject() supports noprompt: and template: prefixes [t=221668]
  • + ReaSurround: fix quadraphonic label typo
  • + Save as: trim media better handles items which end exactly at end of media [t=224122]
  • + Transport: fix display of primary time unit when showing secondary time unit [t=224458]
  • + linux: detect/warn/allow override if numeric locale is set in an incompatible fashion
  • + linux: fix issues with some modal windows [t=224362]
  • # Windows: include internal build ID as executable version for development builds
  • # macOS: include internal build ID in version plist for development builds
This thread is for pre-release features discussion. Use the Feature Requests forum for other requests.

Changelog - Pre-Releases

Generated by X-Raym's REAPER ChangeLog to BBCode


__________________
_Ohh.))::_Kubuntu_::((.Xoxo_my precious
SmajjL is offline   Reply With Quote
Old 08-27-2019, 10:04 AM   #2
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Quote:
Originally Posted by SmajjL View Post
[LIST][*]+ ReaScript: Main_openProject() supports noprompt: and template: prefixes [t=221668]
Can I have some explanation on how to use this to support tempates? Using it as:
Code:
reaper.Main_openProject(ProjectPath)
yields the same result as before.
lexaproductions is offline   Reply With Quote
Old 08-27-2019, 10:31 AM   #3
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Check the v5.983rc1 API docs,..

Lua: reaper.Main_openProject(string name)

opens a project. will prompt the user to save unless name is prefixed with 'noprompt:'. If name is prefixed with 'template:', project file will be loaded as a template.
If passed a .RTrackTemplate file, adds the template to the existing project.
Edgemeal is offline   Reply With Quote
Old 08-27-2019, 01:44 PM   #4
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Ok I'll try this.
I was not aware that there was an API doc for each build? I only go to see there:
https://www.reaper.fm/sdk/reascript/reascripthelp.html
and didn't find anything.
lexaproductions is offline   Reply With Quote
Old 08-27-2019, 01:57 PM   #5
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by lexaproductions View Post
Ok I'll try this.
I was not aware that there was an API doc for each build? I only go to see there:
https://www.reaper.fm/sdk/reascript/reascripthelp.html
and didn't find anything.
Same thing I did for first few weeks!
Action 'Open reaScript documentation (html)', opens API docs in web browser. On Windows it creates the file 'reascripthelp.html in my TEMP folder.
Edgemeal is offline   Reply With Quote
Old 08-27-2019, 01:59 PM   #6
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,750
Default

schwa is offline   Reply With Quote
Old 08-27-2019, 08:31 PM   #7
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Then, isn't this supposed to work?

Code:
local REAPERPath = reaper.GetResourcePath()
local ProjectPath = (REAPERPath..'//ProjectTemplates')
local ProjectName = 'template Realive_AudioRouting.RPP'
reaper.Main_openProject(ProjectPath..'/'..ProjectName)
Because I don't believe it does. The RPP file opens as a normal project


EDIT: Nevermind, I think THIS works:
Code:
  reaper.Main_openProject('template:'..ProjectPath.."/"..ProjectName)

Last edited by lexaproductions; 08-27-2019 at 08:38 PM.
lexaproductions is offline   Reply With Quote
Old 08-28-2019, 06:56 AM   #8
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Quote:
Originally Posted by lexaproductions View Post
EDIT: Nevermind, I think THIS works:
Code:
  reaper.Main_openProject('template:'..ProjectPath.."/"..ProjectName)
I think the single quotes are only there for 'description purpose' (for the lack of a better expression), but not meant to be actually used.

At least here it (only) works without the added single quotes, e.g.
Code:
reaper.Main_openProject("template:H:/_dev/REAPER/REAPER_X64/ProjectTemplates/01.RPP")
nofish is offline   Reply With Quote
Old 08-28-2019, 03:33 PM   #9
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Quote:
Originally Posted by nofish View Post
At least here it (only) works without the added single quotes, e.g.
Code:
reaper.Main_openProject("template:H:/_dev/REAPER/REAPER_X64/ProjectTemplates/01.RPP")
I tried this first:

Code:
 reaper.Main_openProject(template:..ProjectPath.."/"..ProjectName)
but because my path contained some variables, I believe that I had to put the quotes.

I use the same function for several script so I prefer to work with variables.
lexaproductions 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 06:42 AM.


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