|
|
|
05-23-2017, 10:19 AM
|
#1
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
question from a dummy
I am the dummy cuz I don't have any idea of what is or is not possible when it comes to scripts...
There is a long standing issue with FX Browser and it's user created folders that the DEV's don't seem interested in doing anything about... so I wonder if anyone here might find a way?
Here is the thing:
Let's imagine I have created a lot of user folders, and that I want to organize them in some order... could be simple alphabetical or whatever...
As it is right now, we have move to top, move to bottom, move up and move down...
But to do those moves it is rt clk and then clk on one of those options...
So if I want to move one folder up 10 or 15 places, it is a LOT of mousing around... and then to move another that much below it...well you get the idea. Way too much clicking, huh?
I'm OK with moving one place at a time, but it would really help enormously to be able to make those moves with a hot key ... but there are none! [IMHO ...freakin' silly]
So to be clear... I'd be soooo happy to have something like Shift UP arrow to move one place up and the reverse for move one place down.
Is this possible? Or is anything that would make moving those folders more efficient possible?
Thanks for listening...
|
|
|
05-23-2017, 10:25 AM
|
#2
|
Human being with feelings
Join Date: Aug 2014
Location: Netherlands
Posts: 882
|
Try this one: http://jahudka.github.io/rearrangefx/
Not perfect, but it comes quite close I guess?
|
|
|
05-23-2017, 01:45 PM
|
#3
|
Human being with feelings
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
|
Quote:
I want to organize them in some order... could be simple alphabetical
|
Code:
local filePath = reaper.GetResourcePath()..'/'..'reaper-fxfolders.ini'
------------------------------------------------------
function msg(s) reaper.ShowConsoleMsg(s..'\n') end
------------------------------------------------------
function spairs(t, order) --http://stackoverflow.com/questions/15706270/sort-a-table-in-lua
local keys = {} for k in pairs(t) do keys[#keys+1] = k end
if order then table.sort(keys, function(a,b) return order(t, a, b) end) else table.sort(keys) end
local i = 0 return function() i = i + 1 if keys[i] then return keys[i], t[keys[i]] end end
end
------------------------------------------------------
function GetVal( s1,s2)
local val = ({reaper.BR_Win32_GetPrivateProfileString( s1,s2, '', filePath )})[2]
if tonumber(val) then val = tonumber(val) end return val
end
------------------------------------------------------
function main()
local fold_cnt = GetVal('Folders', 'NbFolders')
local t = {}
for i = 0, fold_cnt-1 do
local it = {} for k = 0, GetVal('Folder'..i, 'Nb')-1 do it[#it+1] = {tp = GetVal('Folder'..i, 'Type'..k), it = GetVal('Folder'..i, 'Item'..k) } end
t[ GetVal('Folders', 'Name'..i) ] = it
end
local str = '[Folders]\nNbFolders='..fold_cnt
local id = 0
for k,v in spairs(t, function(t,a,b) return b:lower() > a:lower() end) do str = str..'\nName'..id..'='..k..'\nId'..id..'='..id id = id+1 end
id = 0
for k,v in spairs(t, function(t,a,b) return b:lower() > a:lower() end) do
str = str..'\n\n'..'[Folder'..id..']\nNb='..#t[k]
for pl_id = 1, #t[k] do str = str..'\nType'..(pl_id-1)..'='..t[k][pl_id].tp..'\nItem'..(pl_id-1)..'='..t[k][pl_id].it end
id = id+1
end
reaper.ClearConsole()
msg(str)
end
------------------------------------------------------
main()
- backup fx-folders.ini
- run script
- copy text from console
- close reaper
- replace fx-folders.ini content or create a new one (don`t forget to make a backup)
- save changed fx-folders.ini
- run reaper
|
|
|
05-23-2017, 03:07 PM
|
#4
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
I greatly appreciate the help on this...
I guess I'll try this... however I have to ask again:
Is there no way possible to just have a script that will let me move a selected FX folder up or down with a hot key from inside a runniing reaper?
|
|
|
05-23-2017, 03:24 PM
|
#5
|
Human being with feelings
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
|
Quote:
Originally Posted by Paul99
|
gosh... I got it and tried it and it don't work for me at all...
I have 3 portable installs and though I put in the path to them I get nothing on the screen to move around...
IMHO what would be better would a program, something like this one claims to be, that let's you drag and drop onto it a given .ini file for the FX...
That way we could merely back up the existing .ini file, drop on a copy of it and do the work and save it out.
Hell, we could make various versions sorted differently and save them to a folder, eh?
|
|
|
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 10:00 PM.
|