Old 07-07-2018, 03:09 AM   #1
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default ReaLauncher

Hello to all fellow Reaper users and welcome to the ReaLauncher discussion thread!


What's ReaLauncher?

ReaLauncher is a custom Lua-based version of the default Reaper startup prompt window with additional features.
Powered by Lokasenna's GUI library v2 for Lua (see link in the 'Install instructions' below). So also a big thanks to Lokasenna for his work!


Although I'm mainly testing things under Windows 10, macOS 10.10.5 (Yosemite) and Linux (64-bit), there's always room for improvement.
So if anyone encounters any bugs or errors, please let me know including some basic info like:
  • Operating system (Windows, macOS, Linux) / Reaper version (and if it's 32- or 64-bit) / A short description of the issue (what's the issue and when is it happening)





Feature overview
  • Linux, macOS & Windows support
  • Separate tabs for Recent Projects, (.rpp) Project Templates, (.rtracktemplate) Track Templates, (.rpp) Projects, (.rpl) Project Lists and (.rpp-bak) Backups
  • Option to add additional custom folder paths for Project Templates and Track Templates (which are used in addition to the default template folders)
  • Option to set custom folder paths for Projects, Project Lists and Backups tabs
  • List-filter at the top of each tab which supports input of multiple search words separated by a 'space' character
  • Global section with [New Tab], [New Project] and [Open Project] buttons
  • Selection and loading of multiple entries (multi-select of listbox entries via mouse is already part of Lokasenna's GUI library)
  • File paths can be shown/hidden
  • 'Keep open' checkbox for managing the window auto-close behavior
  • Resizeable window
  • [Show in Explorer/Finder] button for browsing to the folder location of a selected file (requires SWS Extensions)
  • Option to switch between different pre-defined Reaper Theme Slots (requires SWS Extensions)
  • Option to preview attached 'demo' audio files of project and template files (requires js_ReaScriptAPI extension)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Install instructions
  1. Install Lokasenna's GUI library v2 for Lua via ReaPack. Afterwards, run the Script: Set Lokasenna_GUI v2 library path.lua Action from the Action List
  2. Install ReaLauncher via ReaPack
  3. Install the js_ReaScriptAPI extension (via ReaPack) and the SWS Extensions (link below) for some additional features
  4. Have fun!


Optional settings to show ReaLauncher on startup:
  1. Setting the command ID/identifier string (shown in the Action List) of the Script: solger_ReaLauncher.lua Action (or of a Custom Action which contains it) as SWS Startup Action via the Extensions > Startup actions menu
  2. Preferences > General: Open project(s) on startup: Selecting [New project] (instead of the [Prompt] option which shows the default Reaper startup prompt window)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Tips & Tricks

It's possible to select multiple list entries via:
  • SHIFT + LEFT CLICK: Selection of adjacent list entries
  • CTRL/CMD + LEFT CLICK: Selection of non-adjacent list entries
  • Loading a single list entry is also possible via DOUBLE CLICK

Shortcuts for loading projects with FX Offline:
  • Holding CTRL + SHIFT (Windows & Linux)
  • Holding CMD + SHIFT (macOS)
  • Or by using the 'Open with FX offline' option in the [Open Project] window

[Recent Projects] tab: removing selected list entries or clearing the entire recent projects list is possible via the RIGHT CLICK menu options:
  • Remove entry
  • Clear list

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

Changelog

2019-11-30 - v1.7.4 - https://forum.cockos.com/showpost.ph...&postcount=323
2019-11-25 - v1.7.3 - https://forum.cockos.com/showpost.ph...&postcount=317
2019-11-20 - v1.7.2 - https://forum.cockos.com/showpost.ph...&postcount=304
2019-10-27 - v1.7.1 - https://forum.cockos.com/showpost.ph...&postcount=294
2019-10-20 - v1.7.0 - https://forum.cockos.com/showpost.ph...&postcount=284
2019-09-10 - v1.6.2 - Bugfix for handling nil values when saving the output channel the first time to Extstate (saving the first output by default)
2019-09-10 - v1.6.1 - https://forum.cockos.com/showpost.ph...&postcount=255
2019-08-31 - v1.6.0 - https://forum.cockos.com/showpost.ph...&postcount=248
2019-08-16 - v1.5.1 - Bugfix: New Project button was not working
2019-07-30 - v1.5.0 - https://forum.cockos.com/showpost.ph...&postcount=207
2019-01-30 - v1.0.1 - temporary removal of subversion filter due to further bugfixing & testing
2019-01-28 - v1.0.0 - https://forum.cockos.com/showpost.ph...&postcount=148
----------------------------------------------------------------------------------------------
2018-08-18 - v0.1.6 - https://forum.cockos.com/showpost.ph...1&postcount=94
2018-08-09 - v0.1.5 - https://forum.cockos.com/showpost.ph...3&postcount=92
2018-07-23 - v0.1.4 - https://forum.cockos.com/showpost.ph...0&postcount=79
2018-07-15 - v0.1.3 - https://forum.cockos.com/showpost.ph...9&postcount=67
2018-07-11 - v0.1.2 - fixed issue with empty lists, filter is now automatically applied when typing
2018-07-08 - v0.1.1 - changed filter and sort function structure, last window position is now remembered
2018-07-07 - v0.1.0 - first version released for public beta testing

Last edited by solger; 12-01-2019 at 05:12 AM.
solger is offline   Reply With Quote
Old 07-07-2018, 03:09 AM   #2
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Here's the current collection of things/ideas/feature requests which are planned for future updates or might be cool to add (if doable):

GUI
  • Theme options (option to adjust colors and font size)

General
  • FX Chain Lists
  • Option to show 'last modified' and 'created' timestamps
  • Option to rate projects (for instance 1-5 stars, ...)

Filter/Sort
  • Add different sort options (invert filter list order, sort alphabetically, etc.)

Feel free to post any additional ideas or feature wishes. I'll update the list and see what's doable

Last edited by solger; 11-20-2019 at 11:00 AM.
solger is offline   Reply With Quote
Old 07-07-2018, 04:04 AM   #3
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,039
Default

Hey Solger!

This is brilliant!
But I didn't expect otherwise.

Despite the fact, that I ran "Set Lokasenna_GUI v2 library path", solger_ReaLauncher.lua doesn't find the core.lua script (OSX here).
For testing purposes, I moved the script now to the folder containing the core.lua (works). Any idea what the problem could be here?

Some thoughts:
- would it be possible to make the filter field NOT case sensitive?
- pressing enter in the filter dialog executes "apply"
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-07-2018, 04:29 AM   #4
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by _Stevie_ View Post
Despite the fact, that I ran "Set Lokasenna_GUI v2 library path", solger_ReaLauncher.lua doesn't find the core.lua script (OSX here).
For testing purposes, I moved the script now to the folder containing the core.lua (works). Any idea what the problem could be here?
Ah, I knew I forgot to check something
Should work now - version in download link updated.

Quote:
Some thoughts:
- would it be possible to make the filter field NOT case sensitive?
- pressing enter in the filter dialog executes "apply"
Added to the wishlist.
solger is offline   Reply With Quote
Old 07-07-2018, 05:21 AM   #5
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,039
Default

Awesome, works perfectly now!

Another feature request:
- option to close ReaLauncher on load of project
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-07-2018, 06:59 AM   #6
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,469
Default

Hawt. Couple of things:

- Have you considered making this available via ReaPack? It makes updating the script way easier, since end-users can just click a button to do it, and it sidesteps issues a few people have found with some browsers and trying to download .lua files.

- Probably worth mentioning the SWS Startup Actions in your OP, and how to set this up with it. Users would also want to open Preferences | General and change "Open projects on startup" to New Project, if they were previously using the Reaper launcher.

- UpdateListFilters is re-sorting the list on EVERY loop and using an insane amount of CPU - 12% here on my laptop. In general, it's wise to check whether you need to re-sort so you can skip the function unless it's necessary. I just add a global variable here, but you may prefer storing it somewhere else:
Code:
local function UpdateListFilters()

  local filter = GUI.Val("tabs")
  if filter == last_filter then return end

  -- Recent Projects tab
  if filter then
    if RecentProjectFilterActive then
      GUI.elms.lst_recentProjects.list = filteredRecentProjects
    else
      -- Listbox sort mode: Default (most recent project at the top) / Ascending / Descending
      local sortMode = GUI.Val("menu_sort")
      if sortMode == 1 then
        SortDef()
      elseif sortMode == 2 then
        SortAsc()     
      else
        SortDesc()
      end
    end
  end
  -- Project Templates tab
  if filter then
    if ProjectTemplateFilterActive then
      GUI.elms.lst_projectTemplates.list = filteredProjectTemplates
    else
      GUI.elms.lst_projectTemplates.list = projectTemplates
    end
  end
  -- Track Templatse tab
  if filter then
    if TrackTemplateFilterActive then
      GUI.elms.lst_trackTemplates.list = filteredTrackTemplates
    else
      GUI.elms.lst_trackTemplates.list = trackTemplates
    end
  end

  last_filter = filter
end

- What's the purpose of the OSX + setfont code? My GUI automatically does that anyway.

- It doesn't make a difference, but your force-the-same-window-size code could actually go in GUI.onresize. It gets run at the beginning of each loop if the window has been resized; GUI.resized is set at the exact same time and works just as well, of course. Individual elements can also have an onresize method that will be called as part of their update loop as needed.

Code:
GUI.onresize = function()
-- check and force the resize
end

Last edited by Lokasenna; 07-07-2018 at 07:19 AM.
Lokasenna is online now   Reply With Quote
Old 07-07-2018, 07:04 AM   #7
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,039
Default

Talking GUI, is there a way to save the position of the window, when you open it again?
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-07-2018, 07:07 AM   #8
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,469
Default

Quote:
Originally Posted by _Stevie_ View Post
Talking GUI, is there a way to save the position of the window, when you open it again?
solger - I think I forgot to document these, but in Core.lua:
GUI.save_window_state
GUI.load_window_state

The 'name' parameter should be your script name or something.
Lokasenna is online now   Reply With Quote
Old 07-07-2018, 07:13 AM   #9
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,039
Default

Awesome! Solger, if you could incorporate that, that would rock!
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-07-2018, 07:16 AM   #10
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,469
Default

The Sort box at the bottom isn't doing anything here. Not sure why.
Lokasenna is online now   Reply With Quote
Old 07-07-2018, 10:26 AM   #11
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

@Lokasenna: Thanks for the hints. I might have some time to look at this tomorrow.

Quote:
Originally Posted by Lokasenna View Post
- Have you considered making this available via ReaPack? It makes updating the script way easier, since end-users can just click a button to do it, and it sidesteps issues a few people have found with some browsers and trying to download .lua files.
Might most likely be one of the next steps

I haven't had time to check the Reapack webpage and the Development Thread yet for info about this: https://forum.cockos.com/showthread.php?t=169127
Or is there any info elsewhere about the necessary steps to do this? EDIT: found it

Quote:
Originally Posted by Lokasenna View Post
What's the purpose of the OSX + setfont code? My GUI automatically does that anyway.
Interesting. I'll have to check this again (perhaps I didn't have the latest version of your GUI library installed on OSX??)
I added the setfont and GUI.Listbox:drawselection() code because I had an issue here on OSX where the y-position of the selection rectangle was off when selecting elements further down in the listbox.

Last edited by solger; 07-07-2018 at 10:44 AM.
solger is offline   Reply With Quote
Old 07-07-2018, 10:33 AM   #12
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by _Stevie_ View Post
Another feature request:
- option to close ReaLauncher on load of project
You can uncheck the 'window pin' checkbox at the top right.

Or do you mean with 'on load of project' something else?


Saving the position of the window is added to list.

Last edited by solger; 07-07-2018 at 10:41 AM.
solger is offline   Reply With Quote
Old 07-07-2018, 10:43 AM   #13
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,469
Default

Quote:
Originally Posted by solger View Post
Or is there any info elsewhere about the necessary steps to do this?
The easiest way is to make sure it has a valid ReaPack header commented at the top (look at any ReaPack script's code for an example) and then upload it to the appropriate folder on the ReaTeam repo (/Project Properties probably). I'm not sure if you need to be given permission first... that would be a question for cfillion.

Alternatively, I can do it for you.

Quote:
Interesting. I'll have to check this again (perhaps I didn't have the latest version of your GUI library installed on OSX??)
It's been there for ages - GUI.font multiplies the font size by 0.7 if you're on OSX.

Quote:
I had an issue here on OSX where the y-position of the selection rectangle was off when selecting elements further down in the listbox.
Weird. Does that issue happen in the Listbox example script?
Lokasenna is online now   Reply With Quote
Old 07-07-2018, 10:48 AM   #14
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by Lokasenna View Post
The easiest way is to make sure it has a valid ReaPack header commented at the top (look at any ReaPack script's code for an example) and then upload it to the appropriate folder on the ReaTeam repo (/Project Properties probably). I'm not sure if you need to be given permission first... that would be a question for cfillion.
Alternatively, I can do it for you.
Thanks. I'll have a look at it (probably tomorrow).

Otherwise I'll post here again or send you a PM

Quote:
Weird. Does that issue happen in the Listbox example script?
Good point. I'll check this in the example again, as well.
solger is offline   Reply With Quote
Old 07-07-2018, 11:06 AM   #15
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by Lokasenna View Post
The Sort box at the bottom isn't doing anything here. Not sure why.
Strange.

As a side note: The sort box currently affects only the Recent Projects Tab. Because I'm not sure yet if it's better to have one global Sort Box affecting all Tabs at the same time. Or if each Tab should get its own Sort Box ...



Quote:
Originally Posted by Lokasenna
- Probably worth mentioning the SWS Startup Actions in your OP, and how to set this up with it. Users would also want to open Preferences | General and change "Open projects on startup" to New Project, if they were previously using the Reaper launcher.
Done

Last edited by solger; 07-07-2018 at 11:36 AM.
solger is offline   Reply With Quote
Old 07-07-2018, 11:52 AM   #16
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,469
Default

Oh, I think I found it. My fix for the CPU usage is causing it to skip that entire function, so the sorting never happens. I'd suggest reorganizing it into smaller functions - one for checking the tab change, and one for checking the sort change.
Lokasenna is online now   Reply With Quote
Old 07-07-2018, 02:22 PM   #17
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,039
Default

Quote:
Originally Posted by solger View Post
You can uncheck the 'window pin' checkbox at the top right.
Ahh, that's what the green checkbox is for! Yep, that's exactly what I meant.
However, the green box is checked again, when I re-open the dialog.
Is this on purpose?
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-07-2018, 02:33 PM   #18
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by _Stevie_ View Post
However, the green box is checked again, when I re-open the dialog.Is this on purpose?
Yeah, saving of these settings is not implemented yet. But this is one of the points already planned to be included in the next update ...
solger is offline   Reply With Quote
Old 07-07-2018, 02:38 PM   #19
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,039
Default

Okay awesome! Hopefully I don't come across as nitpicking.
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-07-2018, 02:45 PM   #20
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by _Stevie_ View Post
Okay awesome! Hopefully I don't come across as nitpicking.
No worries!

That's basically what the first version is for: so that other Reaper users can test the current state and add comments, suggestions, feature-requests, etc.
solger is offline   Reply With Quote
Old 07-07-2018, 02:51 PM   #21
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,039
Default

Whew, okay
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-08-2018, 09:13 AM   #22
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

A quick update:

ReaLauncher is now available via ReaPack.

I also already did an updated version with the following changes:
Quote:
- changed filter and sort function structure - should be more CPU friendly now
- last window position is now stored
Since I'm using GitHub for the first time, I'm currently reading through some ReaPack related links in order to figure out what's the best procedure for updating the script in the ReaPack repository.
In the meantime you can download the updated version via the download link in the OP.
solger is offline   Reply With Quote
Old 07-08-2018, 09:49 AM   #23
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,469
Default

Yay.

- Switching to Asc or Desc sorting is instant, but there's a half-second of lag switching back to Default. Not sure why, but my first guess would be that it's reading the file list again rather than storing Name + Most Recent Order in memory.

Edit: This is with the ReaPack version, so... not the updated one. Not sure if that fixes it.

- IMO the Default sort should be labelled Most Recent, and should have the most recent at the top - that would make it identical to the native launcher's list.

- For bonus points, the sorting function could be split into two separate menu boxes - Recent/Alphabetical and Ascending/Descending.

- Noticed an issue with the caret being drawn outside the Filter box. That's a GUI bug; pushing a fix now.
Lokasenna is online now   Reply With Quote
Old 07-08-2018, 10:07 AM   #24
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by Lokasenna View Post
- Switching to Asc or Desc sorting is instant, but there's a half-second of lag switching back to Default. Not sure why, but my first guess would be that it's reading the file list again rather than storing Name + Most Recent Order in memory.
Yeah, currently the file list is read again. But this will be changed in a future update (in conjunction with another point) ...

Quote:
- IMO the Default sort should be labelled Most Recent, and should have the most recent at the top - that would make it identical to the native launcher's list.
Good point about the naming.

Quote:
- For bonus points, the sorting function could be split into two separate menu boxes - Recent/Alphabetical and Ascending/Descending.
I'll have a look at this.

Quote:
- Noticed an issue with the caret being drawn outside the Filter box. That's a GUI bug; pushing a fix now.
Nice!

Last edited by solger; 07-08-2018 at 10:15 AM.
solger is offline   Reply With Quote
Old 07-08-2018, 10:40 AM   #25
DaveKeehl
Human being with feelings
 
DaveKeehl's Avatar
 
Join Date: Nov 2015
Location: Switzerland
Posts: 1,902
Default

hey guys I just installed the ReaLauncher! Very cool idea! I don't understand if it's my computer or what but browsing through the tabs and selecting the projects is quite laggy (especially in the recent projects tab).
Am I the only one having this issue?
__________________
REAPER Contest
DaveKeehl is offline   Reply With Quote
Old 07-08-2018, 10:47 AM   #26
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,039
Default

Same here, are you running a Windows machine?
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 07-08-2018, 10:51 AM   #27
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by DaveKeehl View Post
hey guys I just installed the ReaLauncher! Very cool idea! I don't understand if it's my computer or what but browsing through the tabs and selecting the projects is quite laggy (especially in the recent projects tab).
Am I the only one having this issue?
I already did an update which should hopefully make this better, but the updated version isn't up on ReaPack yet.


In the meantime you can download the 'solger_ReaLauncher.lua' file manually from the download link found at the bottom in post #1.

And then copy the file over the current 'solger_ReaLauncher.lua' one:
1) Options > Show Reaper resource path ..
2) Navigate to the subfolder 'Scripts\ReaTeam Scripts\Project Properties'
3) Copy the downloaded 'solger_ReaLauncher.lua' file over the old one
solger is offline   Reply With Quote
Old 07-08-2018, 10:55 AM   #28
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 18,092
Default

Good work

Related: https://forum.cockos.com/showthread.php?t=73999
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Old 07-08-2018, 11:11 AM   #29
DaveKeehl
Human being with feelings
 
DaveKeehl's Avatar
 
Join Date: Nov 2015
Location: Switzerland
Posts: 1,902
Default

Quote:
Originally Posted by _Stevie_ View Post
Same here, are you running a Windows machine?
yes, I guess then it's a windows thing huh?
__________________
REAPER Contest
DaveKeehl is offline   Reply With Quote
Old 07-08-2018, 11:12 AM   #30
DaveKeehl
Human being with feelings
 
DaveKeehl's Avatar
 
Join Date: Nov 2015
Location: Switzerland
Posts: 1,902
Default

Quote:
Originally Posted by solger View Post
I already did an update which should hopefully make this better, but the updated version isn't up on ReaPack yet.


In the meantime you can download the 'solger_ReaLauncher.lua' file manually from the download link found at the bottom in post #1.

And then copy the file over the current 'solger_ReaLauncher.lua' one:
1) Options > Show Reaper resource path ..
2) Navigate to the subfolder 'Scripts\ReaTeam Scripts\Project Properties'
3) Copy the downloaded 'solger_ReaLauncher.lua' file over the old one
thanks I'll do it now
__________________
REAPER Contest
DaveKeehl is offline   Reply With Quote
Old 07-08-2018, 03:23 PM   #31
akademie
Human being with feelings
 
Join Date: Mar 2007
Posts: 605
Default

Installed per instructions (Lokasena library + this ReaScript).
First run Lokasena's library path script with no error.

But then, when I try to run main ReaLauncher script, I get this error:
"solger_ReaLauncher.lua:72: attempt to index a nil value"

It is on Windows 7 Pro 32bit, Reaper 5.92 - portable, SWS v2.8.3)

Any suggestions, please?
Thanks
akademie is offline   Reply With Quote
Old 07-08-2018, 07:01 PM   #32
Fergler
Human being with feelings
 
Fergler's Avatar
 
Join Date: Jan 2014
Posts: 3,951
Default

Great idea, always wished Reaper had a start screen like this.
__________________
Check out my hip-hop, funk-rock band Theatre Crisp
Fergler is offline   Reply With Quote
Old 07-08-2018, 09:03 PM   #33
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,469
Default

Couple of general script observations:

- Lua can do block comments rather than having to comment each line if you want:
Code:
--[[
   Blah
     blah
  blah

     blah blah blah
blah
]]--
- You should be able to use / as a file separator on both Windows and OSX without any trouble. Windows will quite happily let you mismatch them: C:/Users\\Me\\AppData/Roaming/Reaper/Scripts\\ReaTeam Scripts/stuff.lua

- Reaper has a function for getting values from an .ini if you want: retval, string = reaper.BR_Win32_GetPrivateProfileString( sectionName, keyName, defaultString, filePath ). Ignore the name; it should work on OSX just fine.

- You can wrap ShowConsoleMsg in a helper function to save a bit of typing, and having to remember the \n each time - in fact, GUI.Msg("my string") is ready to do it for you. You can also include the debug check in a helper rather than having to check each time:
Code:
local function Msg(str)
    reaper.ShowConsoleMsg( tostring(str) )
end

local function dMsg(str)
    if debug_enabled then reaper.ShowConsoleMsg( tostring(str) .. "\n" ) end
end

debug_enabled = true
Msg("this will always print")
dMsg("this will print")
debug_enabled = false
dMsg("this won't print")

Last edited by Lokasenna; 07-08-2018 at 09:12 PM.
Lokasenna is online now   Reply With Quote
Old 07-09-2018, 09:10 AM   #34
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 1,525
Default

Interesting script, found minor? error..

With Recent List empty, click inside that list and then click the 'Load' or 'Load in Tab' buttons and it throws error, (string expected, got nil).

ReaLauncher 0.1.1
Lokasenna_GUI: v2.11.1
Reaper (portable): 5.80/x64
Platform: Win64

EDIT Same error for Project & Track templates tab, click inside empty list, then click load/insert button, throws error.

Last edited by Edgemeal; 07-09-2018 at 09:21 AM.
Edgemeal is offline   Reply With Quote
Old 07-09-2018, 09:12 AM   #35
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

The first update (0.1.1) is now also up on ReaPack. So if you haven't already, run Extensions > ReaPack > Synchronize to get the latest version.



Quote:
Originally Posted by Lokasenna View Post
Couple of general script observations:
Cool. Thanks for the hints.
solger is offline   Reply With Quote
Old 07-09-2018, 09:14 AM   #36
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by Edgemeal View Post
Interesting script, found minor? error..

With Recent List empty, click inside that list and then click the 'Load' or 'Load in Tab' buttons and it throws error, (string expected, got nil).

ReaLauncher 0.1.1
Lokasenna_GUI: v2.11.1
Reaper (portable): 5.80/x64
Platform: Win64
Nice find. Thanks.
Will have a look at this.
solger is offline   Reply With Quote
Old 07-09-2018, 09:18 AM   #37
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,469
Default

The very first line of that crash report includes a line number where the error code - it would probably be very helpful in isolating the problem.
Lokasenna is online now   Reply With Quote
Old 07-09-2018, 09:40 AM   #38
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 3,893
Default

Quote:
Originally Posted by akademie View Post
But then, when I try to run main ReaLauncher script, I get this error:
"solger_ReaLauncher.lua:72: attempt to index a nil value"

It is on Windows 7 Pro 32bit, Reaper 5.92 - portable, SWS v2.8.3)

Any suggestions, please?
Thanks
According to the error message I'm guessing that line 63/64 (version 0.1/0.1.1) 'resourcePath = reaper.GetResourcePath()' couldn't somehow retrieve a resource path (which the script is trying to access later)
I'll have to check this.



In the meantime:

- When you open the script in the Action List via the [Edit...] button and then run it from the editor via the [Start] button: does 'resourcePath' show any value on the right?

- In addition, you can also try if the error is gone when setting the Reaper resource path (Options > Show Reaper resource path ...) manually by editing line 63/64 in the script:
Exchanging the bold part:
Code:
resourcePath = reaper.GetResourcePath()
... with the resource path (in quotes):
Code:
resourcePath = "<enter the Reaper resource path here>"

Last edited by solger; 07-09-2018 at 10:21 AM.
solger is offline   Reply With Quote
Old 07-10-2018, 09:34 AM   #39
Tim Rideout
Human being with feelings
 
Tim Rideout's Avatar
 
Join Date: Jan 2013
Location: Montreal, Canada
Posts: 200
Default

One thing I absolutley cannot understand in Reaper's organisation of Project Templates: Why are they not Folder-Structurable - like the Track templates.

IE:

MIX>>Live Band
>>Orchestral
>>5 Stem TV project
MASTER>>CD
>>Voice-Over
RECORD>>Live Band
>>Acoustic Duo

Etc...

At present, I have 40 templates, and they are all in a big list..
If you could fix this, you would forever rock. Even more than you already do...

T

Quote:
Originally Posted by solger View Post
Here's the current collection of things/ideas/feature requests - which are planned for future updates or might be cool to add (if doable):
  • Additional 'Projects' Tab (with the option to add a custom project folder path)
  • Option to add custom folder paths for Track & Project Templates (in addition to the default paths)
  • Option to show the full file paths (and maybe also with the possibility to open the folder location directly in Explorer/Finder)
  • Save window settings (as example: 'window-pin' setting, last text entries in the filter boxes, custom paths, etc.)
  • Option to 'Open with FX offline'
  • Option to remove list entries


Filter/Sort
  • Filter: additional/other options (like 'not case sensitive')
  • Filter: Accept (enter) key input for 'Apply'
  • Sort: Separate boxes for Recent/Alphabetical and Ascending/Descending


Feel free to post any additional ideas or feature wishes
I'll add them to this list and see what's doable.
__________________
---
www.TimRideout.com
Tim Rideout is offline   Reply With Quote
Old 07-10-2018, 09:36 AM   #40
Tim Rideout
Human being with feelings
 
Tim Rideout's Avatar
 
Join Date: Jan 2013
Location: Montreal, Canada
Posts: 200
Default

Boy. I hate to ask this, but...

After I have installed Lokasenna's GUI Lib and ReaLauncher via ReaPack, how do I invoke it?

I start Reaper and... nothing new...

There are no N00b questions; only n00bs...

:-#

T
__________________
---
www.TimRideout.com
Tim Rideout 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 12:50 PM.


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