Old 05-23-2017, 10:19 AM   #1
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default 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...
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 05-23-2017, 10:25 AM   #2
Paul99
Human being with feelings
 
Join Date: Aug 2014
Location: Netherlands
Posts: 882
Default

Try this one: http://jahudka.github.io/rearrangefx/
Not perfect, but it comes quite close I guess?
Paul99 is offline   Reply With Quote
Old 05-23-2017, 01:45 PM   #3
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

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
mpl is offline   Reply With Quote
Old 05-23-2017, 03:07 PM   #4
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

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?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 05-23-2017, 03:24 PM   #5
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Quote:
Originally Posted by Paul99 View Post
Try this one: http://jahudka.github.io/rearrangefx/
Not perfect, but it comes quite close I guess?
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?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 05-23-2017, 03:31 PM   #6
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

http://forum.cockos.com/showthread.p...19#post1848219

FYI I have made a FR for this to be native... please go and support it, will you?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi 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 08:42 AM.


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