Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 07-05-2020, 10:50 PM   #1
138BPM
Human being with feelings
 
Join Date: Dec 2019
Posts: 67
Default Is there a way to get a list of VST paths being used in a project?

I get paranoid about this in case I ever need to re-install Windows.

It would be good if the paths to all the VST plugins being used, could be exported
somehow, but I know of no way to do this in Reaper.

I know Ctrl+B (then clicking the FX tab at the top) can show this as a list, but doing
"Save" there saves a ".ReaBay" file in the ProjectBays folder and that file doesn't
contain the paths. Also, you cannot copy the paths from the column in the Project Bay
window.

Assuming there's no quick way to save all the paths to the VST plugins, this would be
a great addition to Reaper in future versions (it just needs to have the functionality
to be able to accept pressing Ctrl+C to copy if right clicking the plugin in the list
under paths in the Project Bay).
138BPM is offline   Reply With Quote
Old 07-05-2020, 11:52 PM   #2
Philbo King
Human being with feelings
 
Philbo King's Avatar
 
Join Date: May 2017
Posts: 3,195
Default

View - project bay - FX
__________________
Tangent Studio - Philbo King
www.soundclick.com/philboking - Audio streams
Philbo King is offline   Reply With Quote
Old 07-06-2020, 10:17 AM   #3
138BPM
Human being with feelings
 
Join Date: Dec 2019
Posts: 67
Default

Quote:
Originally Posted by Philbo King View Post
View - project bay - FX
That isn't able to export the list of paths as plain text.

That's why I said "I know Ctrl+B (then clicking the FX tab at the top) can show this as a list..."
138BPM is offline   Reply With Quote
Old 07-06-2020, 11:36 AM   #4
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 7,407
Default

Edgemeal coded a script to do exactly this.
See here https://forum.cockos.com/showthread.php?t=225219
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
Fabian is offline   Reply With Quote
Old 07-06-2020, 11:53 PM   #5
138BPM
Human being with feelings
 
Join Date: Dec 2019
Posts: 67
Default

Quote:
Originally Posted by Fabian View Post
Edgemeal coded a script to do exactly this.
See here https://forum.cockos.com/showthread.php?t=225219
Fabian cheers, that's good but it doesn't save the paths to the VST files.

The script only saves info about what's loaded on the tracks, for example:

Quote:
Project: My Song.rpp
Path: C:\Reaper\Projects\My Song
Date: July 06, 2020 08:41:22

Track 1: Strings
VSTi: reFX Nexus (x86) (reFX) Preset: Strings

Track 2: Bass
VSTi: JUPITER-8 (Roland Cloud) Preset: Bass

Track 3: Whatever

Track 4: Whatever

Track 5: Whatever
etc etc

Last edited by 138BPM; 07-07-2020 at 12:36 AM.
138BPM is offline   Reply With Quote
Old 07-07-2020, 07:10 AM   #6
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,903
Default

Quote:
Originally Posted by 138BPM View Post
Also, you cannot copy the paths from the column in the Project Bay window.
Requires SWS and js_ReaScriptAPI extensions, Tested on Win10 only...
EDIT Updated to not copy duplicate paths.

Code:
-- Copy VST paths to clipboard from Project Bay.lua
-- Edgemeal - July 07, 2020
-- Donate: https://www.paypal.me/Edgemeal

function contains(t, text)
  for i = 1, #t do
    if t[i] == text then return true end
  end 
end

function Main()
  local hwnd = reaper.JS_Window_Find('Project Bay', true) 
  local container = reaper.JS_Window_FindChildByID(hwnd, 0)
  local lv = reaper.JS_Window_FindChildByID(container,0x42F)
  if not lv then reaper.MB('Project Bay List not found!', 'ERROR', 0) return end
  local sel_count, sel_indexes = reaper.JS_ListView_ListAllSelItems(lv)
  if sel_count == 0 then reaper.MB('Please select one or more items to copy.', 'ERROR', 0) return end
  local t = {}
  for ndx in string.gmatch(sel_indexes, '[^,]+') do
    local text = reaper.JS_ListView_GetItemText(lv, tonumber(ndx), 9) -- 9=path column
    if not contains(t, text) then t[#t+1] = text end
  end
  reaper.CF_SetClipboard(table.concat(t,"\n")) -- copy results to clipboard (SWS).
end

Main()
reaper.defer(function () end)

Last edited by Edgemeal; 07-07-2020 at 08:25 AM. Reason: Avoid copying duplicates
Edgemeal is offline   Reply With Quote
Old 07-07-2020, 10:22 AM   #7
138BPM
Human being with feelings
 
Join Date: Dec 2019
Posts: 67
Default

Quote:
Originally Posted by Edgemeal View Post
Requires SWS and js_ReaScriptAPI extensions, Tested on Win10 only...
EDIT Updated to not copy duplicate paths.
Genius :P

I am totally new to adding stuff to Reaper, but after adding SWS and js_ReaScriptAPI, it works perfectly. Cheers Edgemeal, this is a great help, I will try to donate at some point.
138BPM is offline   Reply With Quote
Old 07-07-2020, 11:19 AM   #8
138BPM
Human being with feelings
 
Join Date: Dec 2019
Posts: 67
Default

It worked in a VM testing it but now on my actual system I get:

Quote:
Copy VST paths to clipboard from Project Bay.lua:23: attempt to call a nil value (field 'CF_SetClipboard')
Windows 10 x64 / Reaper x64
138BPM is offline   Reply With Quote
Old 07-07-2020, 11:41 AM   #9
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,903
Default

CF_SetClipboard requires SWS.
FWIW I have SWS pre-release v2.12 installed.
Edgemeal is offline   Reply With Quote
Old 07-07-2020, 12:18 PM   #10
138BPM
Human being with feelings
 
Join Date: Dec 2019
Posts: 67
Default

Quote:
Originally Posted by Edgemeal View Post
CF_SetClipboard requires SWS.
FWIW I have SWS pre-release v2.12 installed.
Sorry it works now, I just forgot to copy reaper_sws64.dll and sws_python.py
to my usual Reaper Plugins folder, after trying it in a VM.

Last edited by 138BPM; 07-07-2020 at 01:48 PM.
138BPM 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 11:43 PM.


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