Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 09-25-2018, 03:54 AM   #1
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default Rename Multiple Marker/Regions at once

Requesting a way to rename multiple regions/markers at once.

Marker Region Manager -> Select multiple Regions/Markers -> Right Click -> Rename-> Name is applied to all selected Regions/Markers.

Would massively help in some situations, currently, workaround involves editing in excel. I'm currently using Reaper to embed 1000s of Markers and Regions into Wav metadata.
hscottaudio is offline   Reply With Quote
Old 09-25-2018, 12:02 PM   #2
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,271
Default

An easier workaround might be using a dummy track, creating items from your existing regions, using the various item renaming actions to get the names, and finally creating regions from those items. This will require SWS extensions.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 09-25-2018, 12:51 PM   #3
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,668
Default

Rename markers and regions within time selection.lua
Code:
function main()
  local time_sel_start, time_sel_end = reaper.GetSet_LoopTimeRange2(0, false, false, 0, 0, false)
  if time_sel_start == time_sel_end then return end
  local retval, retvals_csv = reaper.GetUserInputs("Rename markers/regions", 1, "Rename markers/regions", "")
  if not retval or retvals_csv == "" then return end
  local new_name = retvals_csv
  local i=0
  while true do
    local ret, isrgn, pos, rgnend, name, markrgnindexnumber = reaper.EnumProjectMarkers(i)
    if ret == 0 then
      break
    end
    if pos >= time_sel_start then
      if isrgn and rgnend <= time_sel_end or not isrgn and pos <= time_sel_end then
        reaper.SetProjectMarkerByIndex(0, i, isrgn, pos, rgnend, markrgnindexnumber, new_name, 0)
      end
    end
    i = i + 1
  end
  reaper.Undo_OnStateChangeEx("Rename markers and regions", -1, -1)
end

reaper.defer(main)
spk77 is offline   Reply With Quote
Old 09-25-2018, 02:32 PM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

I also propose advanced renamers for regions and markers, if you want to have counters, scales, variables etc...


https://www.extremraym.com/en/downlo...nced-renamers/


X-Raym is offline   Reply With Quote
Old 09-26-2018, 03:28 AM   #5
hscottaudio
Human being with feelings
 
Join Date: Jul 2016
Posts: 98
Default

thanks guys, very useful!
hscottaudio 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:03 AM.


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