|
|
|
11-04-2019, 08:18 AM
|
#1
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Project Manager
https://forum.cockos.com/showthread.php?t=259165
NOW NATIVE!!
Projekt Manager
Features:- Read out the names of the project folder (no subfolders yet)
- Rating
- Author from ProjectSettings "Notes"
- Style (can be changed)
- Tempo
- Time signature
- Date
- Length
- Project Counter Time (how long did I work on the song (in d: h: m)
for this the "Counter time project.lua" from Archie has to be installed.
- DEADLINE (just counts down and clears at zero) joke (goes to -1 the next day)
- Comments
- ** each column can be sorted **
After 4 weeks the script was mainly completed by LB0 (donation) ( https://forum.cockos.com/member.php?u=90399)
. Thank you again. Thanks for the help to nofish,solger, eugen2777 and the others from the community
https://www.dropbox.com/sh/yhyw7x9li...FCg7eS-Wa?dl=0
Installation
1. Copy the folder with the 3 files into Reapers "Scripts" folder. (Reaper Menu : Options/Show REAPER resource path in Explorer/Finder
2. Open and Run "spk77_Save table to file and load table from file_functions.lua" (you can not see anything) (Reaper Menue: Actions/Show action list/New action../Load ReaScript
3. Open and "Edit action" ProjectManager.lua to set the path of your project folder Save with Ctrl+S
(It looks like this to me local projfol = " C:\\ReaperProjects\\ "
4. To add a shortcut for Example "P" Reaper Menu : Actions/Show action list
Filter : "ProjectManager" then click "ProjectManager" and "Shortcuts for selected action"
5. Installing the font for the asterisks(*****) with the right mouse button select "install"
6. Install counter timer von archie via ReaPack
https://forum.cockos.com/showthread....ghlight=archie
Last edited by Dragonetti; 11-16-2021 at 01:28 AM.
|
|
|
11-04-2019, 10:47 AM
|
#2
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Yes it is, but we need some more info on that. AND: you will not be able to see it in Explorer or something, only within Reaper.
What do you need the Project Manager for? For which usecase?
|
|
|
11-05-2019, 05:07 AM
|
#3
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Only within Reaper is fine.
I would like to be able to open a Reaper project from this script.
Then I would like to create categories(Name,Composer etc) and be able to sort the files by those categories.
Composer (several musicians are working on this computer).
Date created
Date modified
Rating
*DEADLINE* (x days)
Status (unfinished, finished)
Tempo
Time Signature
Length
Comments1,2,
etc
The question is, what information could the script read from the project file?
(Name,Date,Tempo , Time Signature, Length,)
Thank you
Last edited by Dragonetti; 02-11-2020 at 04:39 AM.
|
|
|
01-10-2020, 01:47 PM
|
#4
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
bump
I will donate!!
Please
Or someone would have to explain (joke) to me how to create a table and read out the project name, tempo, length and time signature.
Script: edgemeal_Save project plugin info to text file.lua can do quite a bit.
Last edited by Dragonetti; 01-10-2020 at 01:54 PM.
|
|
|
01-10-2020, 02:02 PM
|
#5
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,239
|
I've been wanting to do a script for this for a long time... but not having the time. I did one that is half way there, for my internal usage, which is not ready to be published in general. But yes this is certainly possible to do. In my case I want also to group REAPER project files in Projects Sets. Like managing groups of RPP files for each project.
|
|
|
01-10-2020, 02:58 PM
|
#6
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Yes, I've already thought of you.
The track template script has little resemblance.
|
|
|
01-11-2020, 04:00 PM
|
#8
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Thank you X-Raym.
I will test this possibility
|
|
|
01-11-2020, 04:32 PM
|
#9
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
I can't start the alternative explorer from Reaper (Ctrl + O)
Does anyone have a hint?
|
|
|
01-27-2020, 02:46 PM
|
#10
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Does none of the programmers have time?
I will donate.
Can you recommend a Lua course for beginners?(german)
Thank you
|
|
|
02-07-2020, 07:48 AM
|
#11
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
I found this little script. With this you can read out the project folder (REAPER Media). The lua script is in the same directory as the project folder.
All this would then have to be in a kind of tableGUI and only * .rpp files (without file extension) should be read out. Can someone help me there?
Thank you very much
Code:
function msg(m)
return reaper.ShowConsoleMsg(tostring(m) .. "\n")
end
--p = reaper.GetExePath()
function get_script_path()
local info = debug.getinfo(1,'S');
local script_path = info.source:match[[^@?(.*[\/])[^\/]-$]]
--msg(script_path)
return script_path
end
-- get "script path"
script_path = get_script_path()
grooves_path = script_path .. "\\REAPER Media"
-- Lua implementation of PHP scandir function
function scandir(directory)
local i, t, popen = 0, {}, io.popen
for filename in popen('dir "'..directory..'" /b'):lines() do
msg(filename)
i = i + 1
t[i] = filename
end
return t
end
--file_table = scandir(script_path)
file_table = scandir(grooves_path)
So far it still looks like this
|
|
|
02-07-2020, 05:34 PM
|
#12
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
REAPER as dedicated API for that, EnummerateFiles function, this would be a prefered method I think.
|
|
|
02-08-2020, 06:59 AM
|
#13
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Can you give me an example with this path?
C:\Users\m\Documents\REAPER Media
|
|
|
02-08-2020, 03:41 PM
|
#14
|
Human being with feelings
Join Date: Sep 2014
Posts: 2,643
|
Maybe you could modify ReaLauncher
|
|
|
02-09-2020, 12:02 PM
|
#15
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
I can't do it myself
I just asked Solger if he could add a tagging and sorting function in ReaLauncher.
Last edited by Dragonetti; 02-14-2020 at 05:59 AM.
|
|
|
02-14-2020, 07:56 AM
|
#16
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
1.How do I get the names of the project files that I read with EnumerateFiles (path) into the GUI text buttons.
2.How can I sort the entries alphabetically(forward backward) using the Projectname button.
Thank you
https://stash.reaper.fm/38298/Simple...ectManager.lua
|
|
|
02-23-2020, 05:17 PM
|
#17
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
I have a new idea for a special project manager
I can't program it myself
|
|
|
03-16-2020, 11:01 AM
|
#18
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
|
|
|
03-17-2020, 12:51 AM
|
#19
|
Human being with feelings
Join Date: Dec 2007
Location: Germany
Posts: 253
|
Great first project
Hi Dragonetti.
Thanks! Wow, great first project with a nice result.
Will try it out later.
BR,
HoJo
|
|
|
03-18-2020, 11:13 AM
|
#20
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
With tempo, style and date created everything is fine.
The only problem is how you can automatically reduce the DEADLINE input every day by one day
Thanks
https://stash.reaper.fm/38595/ProjectManager.lua
|
|
|
03-18-2020, 12:55 PM
|
#21
|
Human being with feelings
Join Date: Dec 2007
Location: Germany
Posts: 253
|
Hi Dragonetti.
That looks really wicked, but unfortunately I am OSX.
I always end up with the message:
cannot open /Users/diejopps/Library/Application Support/REAPER/Scripts/ProjectManager/spk77_Save table to file and load table from file_functions.lua: No such file or directory
being shown.
Can you help me with that?
BR
|
|
|
03-18-2020, 01:34 PM
|
#22
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by HoJo
I always end up with the message:
cannot open /Users/diejopps/Library/Application Support/REAPER/Scripts/ProjectManager/spk77_Save table to file and load table from file_functions.lua: No such file or directory
|
Hi Holger,
Besides the ProjectManager.lua, did you already download and place the other two files from the Dropbox-Link into the same directory, as well?: https://forum.cockos.com/showpost.ph...15&postcount=7
|
|
|
03-18-2020, 03:00 PM
|
#23
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
This is the new version.
Deadline does not work yet.
function
For example, the input would be "60 days".
Now the script should subtract one day every day.
The buttons above to insert the current project file data do not work either.
Maybe someone can help me there.
This code (edgemeal) would have to be adjusted.
Thank you
Code:
function Main()
local proj, projfn = reaper.EnumProjects(-1, "")
if projfn ~= "" then
t[#t+1]=""..reaper.GetProjectName(proj, "")
t[#t+1]=""..reaper.GetProjectPath("")
local line = get_line(projfn, 1)-- project time stamp, Unix format, last word in 1st line of project file.
local unixTS = (GetLastWord(line))
t[#t+1]='' ..(os.date("%Y-%m-%d, ")) -- convert to "month day, year time"
t[#t+1]='' .. reaper.format_timestr(reaper.GetProjectLength(proj), "")
else
t[#t+1]="Unknown project (not saved)"
end
end
https://www.dropbox.com/sh/mkk741yvo...F7DTTTfOa?dl=0
|
|
|
03-26-2020, 05:53 AM
|
#24
|
Human being with feelings
Join Date: Dec 2007
Location: Germany
Posts: 253
|
Hi All.
Thanks for your pointers and advices so far.
I did that even before, but still facing that error.
Maybe something else is missing on OSX 10.13??
BR,
Holger
|
|
|
03-26-2020, 06:06 AM
|
#25
|
Human being with feelings
Join Date: Mar 2013
Posts: 5,844
|
Quote:
Originally Posted by HoJo
Thanks for your pointers and advices so far. I did that even before, but still facing that error.
Maybe something else is missing on OSX 10.13??
|
The ProjectManager.lua script expects the necessary files to be in the .../Scripts/ProjectManager subfolder of the Reaper resource path (Options > Show REAPER resource path in explorer/finder), as shown in the Windows screenshot in post #23.
So in your example, on macOS this would be:
Quote:
/Users/diejopps/Library/Application Support/REAPER/Scripts/ProjectManager/ProjectManager.lua
/Users/diejopps/Library/Application Support/REAPER/Scripts/ProjectManager/spk77_Save table to file and load table from file_functions.lua **
...
|
** If you're still getting the 'No such file or directory' error message, then the spk77_Save table to file and load table from file_functions.lua is most likely still not present in the expected folder location (highlighted in bold):
Quote:
cannot open /Users/diejopps/Library/Application Support/REAPER/Scripts/ProjectManager/spk77_Save table to file and load table from file_functions.lua: No such file or directory
|
-----------------
EDIT:
As a side note: in case you can launch the ProjectManager.lua script, but are getting a ... attempt to call nil value (field 'CF_LocateInExplorer') error when clicking on a row in the 'Song' column: make sure that the SWS Extensions are installed (which this function requires)
Last edited by solger; 03-26-2020 at 07:21 AM.
|
|
|
03-26-2020, 03:47 PM
|
#26
|
Human being with feelings
Join Date: Dec 2007
Location: Germany
Posts: 253
|
Hi solger.
Thx a lot. Working now.
BR,
HoJo
|
|
|
03-26-2020, 03:48 PM
|
#27
|
Human being with feelings
Join Date: Dec 2007
Location: Germany
Posts: 253
|
Hi Dragonetti.
Looking great!
Thanks.
BR,
HOlger
|
|
|
03-30-2020, 03:46 PM
|
#28
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
hi
I need help with coding again.
"TIME_SEC_AFK_SESSION" worked with the code(nofish) below
Now I need "PROJECT_STARTED" only "26.03.2020"
if someone had time it would be nice.
Dragonetti
Code:
function restore_time()
local ret, saved_time_sec = reaper.GetProjExtState(0, "ARC_COUNTER_TIMER_IN_PROJ_WIN", "TIME_SEC_AFK_SESSION")
if saved_time_sec ~= "" then
return saved_time_sec
else
return 0
end
end
-- convert restored time from sec. to dd:hh:mm
function sec_to_ddhhmm(time_sec)
local days = math.floor(time_sec/(60*60*24))
local hours = math.floor(time_sec/(60*60)%24)
local minutes = math.floor(time_sec/60%60)
return string.format("%02d:%02d:%02d",days,hours,minutes)
end
restored_time_sec = restore_time()
restored_time_ddhhmm = sec_to_ddhhmm(restored_time_sec)
|
|
|
03-30-2020, 05:07 PM
|
#29
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Can't test currently but I think something like this should work:
Code:
function restore_proj_started()
local ret, proj_started = reaper.GetProjExtState(0, "ARC_COUNTER_TIMER_IN_PROJ_WIN", "PROJECT_STARTED")
return proj_started
end
proj_started = restore_proj_started()
if proj_started ~= "" then -- if not empty string
-- only store date, discard the rest
proj_started = string.sub(proj_started, 1, 10))
end
That would only work if the date substring is always in the form DD.MM.YYYY, otherwise a string match function should be used I think but that's not my field.
Last edited by nofish; 03-30-2020 at 05:14 PM.
|
|
|
03-31-2020, 12:52 AM
|
#30
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Küsschen
|
|
|
04-02-2020, 11:17 PM
|
#31
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
I have a funny GUI problem.
My label entries disappear when I wipe with the mouse.
Does anyone have a solution?
Last edited by Dragonetti; 04-10-2020 at 12:53 AM.
|
|
|
04-11-2020, 05:00 AM
|
#32
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
hi Guys
The ProjectManager works quite well so far.
What still needs to be improved:
1. Date modified
The current data is not read in, but only the data saved in the PM after the last saving of the current project. The PM would have to read in all date modified from all projects at the start.
2. Read out data
No subfolders are searched.
3. Deadline
actually works, but a bit awkward
4. Current project
If you get the current project in row 1, make changes, you must not scroll, but save first.
I would be grateful for further help
dragonetti
Last edited by Dragonetti; 04-29-2020 at 07:33 AM.
|
|
|
04-16-2021, 09:06 AM
|
#33
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Hello scripters,
could you help again?
Thank you
I also want to search subfolders for project files.
At the moment the script only look into the folder:
(Line 14)
local projfol = "C: \\ ReaperProjects\\ "
The script should search this folder plus subfolder.
here is an excerpt from the script
otherwise the whole script is here:
https://www.dropbox.com/s/7dm7b3xr4e...nager.lua?dl=0
Code:
function EnumerateFiles(path)
local files = {}
local i = 0
repeat
local retval = reaper.EnumerateFiles( path, i )
local fn = string.match(retval or '', '(.-)%.rpp$') or string.match(retval or '', '(.-)%.RPP$')
if fn then
table.insert(files, fn)
end
i = i + 1
until not retval
return files
end
------------------------------------------------
--------------------------------------------------
---------------------------------------------------
function ReadProjects()
local projects
local projectData = {}
local fn = projfol
projects = EnumerateFiles(fn)
for p = 1, #projects do
projectData[string.lower(projects[p])] = {proj = projects[p],
rating = 1, rating_val = rating[1],
author_val = '',
tempo_val = '',
time_val = '',
style_val = '',
datemod_val = '',
datecr_val = '',
length_val = '',
counter_val = '',
deadline_val = '',
notes_val = '',
comment3_val = '', comment3_val2 = '', comment3_val3 = ''}
end
return projectData
end
|
|
|
04-17-2021, 01:46 AM
|
#34
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Plug the reaper.EnumerateSubdirectories( path, subdirindex ) function in your Enum file function and make it recusrive (it should call itself for each subdir found to also add files of this sub dir and recheck the subfolders of this subfolder)
https://somedudesays.com/2019/05/bas...and-recursion/
|
|
|
04-18-2021, 12:15 AM
|
#35
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Thank you for the information.
Unfortunately I can't do it myself.
It actually works that way for me, but I've already received inquiries as to where some users would have liked to browse the subfolders.
|
|
|
10-18-2021, 06:43 AM
|
#36
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
A lot is possible with the Prerelease v6.37 + dev1015.
+ Media explorer: display .rpp metadata
and edit
You can create a user column and access the metafiles of the project.
Author, Bpm, length, Date modified, descrption (for rating) etc.
Last edited by Dragonetti; 11-25-2021 at 05:01 AM.
|
|
|
11-02-2021, 07:44 AM
|
#37
|
Human being with feelings
Join Date: Feb 2017
Location: Kiel
Posts: 974
|
Last edited by Dragonetti; 03-02-2022 at 02:42 PM.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 07:44 AM.
|