Old 11-04-2019, 08:18 AM   #1
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default Search for a script: Project Manager



Is it possible to write such a script?
Thank you
Dragonetti is offline   Reply With Quote
Old 11-04-2019, 10:47 AM   #2
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,890
Default

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?
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 11-05-2019, 05:07 AM   #3
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

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.
Dragonetti is offline   Reply With Quote
Old 01-10-2020, 01:47 PM   #4
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

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.
Dragonetti is offline   Reply With Quote
Old 01-10-2020, 02:02 PM   #5
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,670
Default

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.
heda is offline   Reply With Quote
Old 01-10-2020, 02:58 PM   #6
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

Yes, I've already thought of you.
The track template script has little resemblance.
Dragonetti is offline   Reply With Quote
Old 01-10-2020, 05:56 PM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,316
Default

There is some indows explorer alternative which allows to tag files, you should look into these.


https://www.xyplorer.com/tour.php?page=tags



https://www.tagspaces.org/
X-Raym is offline   Reply With Quote
Old 01-11-2020, 04:00 PM   #8
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

Thank you X-Raym.
I will test this possibility
Dragonetti is offline   Reply With Quote
Old 01-11-2020, 04:32 PM   #9
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

I can't start the alternative explorer from Reaper (Ctrl + O)
Does anyone have a hint?
Dragonetti is offline   Reply With Quote
Old 01-27-2020, 02:46 PM   #10
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

Does none of the programmers have time?

I will donate.

Can you recommend a Lua course for beginners?(german)
Thank you
Dragonetti is offline   Reply With Quote
Old 02-07-2020, 07:48 AM   #11
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

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
Dragonetti is offline   Reply With Quote
Old 02-07-2020, 05:34 PM   #12
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,316
Default

Code:
scandir(directory)
REAPER as dedicated API for that, EnummerateFiles function, this would be a prefered method I think.
X-Raym is offline   Reply With Quote
Old 02-08-2020, 06:59 AM   #13
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

Can you give me an example with this path?
C:\Users\m\Documents\REAPER Media
Dragonetti is offline   Reply With Quote
Old 02-08-2020, 03:41 PM   #14
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 1,266
Default

Maybe you could modify ReaLauncher
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
MusoBob is offline   Reply With Quote
Old 02-09-2020, 12:02 PM   #15
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

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.
Dragonetti is offline   Reply With Quote
Old 02-14-2020, 07:56 AM   #16
Dragonetti
Human being with feelings
 
Join Date: Feb 2017
Location: Kiel
Posts: 136
Default

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

Dragonetti 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:08 PM.


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