Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 11-01-2020, 09:27 AM   #41
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,128
Default

A bit like this great app:

https://www.bulkrenameutility.co.uk/
lexaproductions is offline   Reply With Quote
Old 11-02-2020, 08:56 AM   #42
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

I use this application, it is great.

In the ReaNamer we have 14 actions, some of them beginning with the same letter as others... I ll have to think about the key shortcut assignments..
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 11-04-2020, 09:43 AM   #43
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Would these shortcuts make sense? :

Alt + A --> swAp case
Alt + C --> Clear
Alt + E --> trim End
Alt + K --> Keep
Alt + L --> Lowercase
Alt + N --> Number
Alt + P --> Prefix
Alt + R --> Replace
Alt + S --> trim Start
Alt + T --> Titlecase
Alt + U --> Uppercase
Alt + W --> strip Whitespaces
Alt + X --> suffiX
Alt + Z --> capitaliZe
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 11-04-2020, 10:19 AM   #44
Skorobagatko
Human being with feelings
 
Skorobagatko's Avatar
 
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
Default

Quote:
Originally Posted by amagalma View Post
Would these shortcuts make sense? :

Alt + A --> swAp case
Alt + C --> Clear
Alt + E --> trim End
Alt + K --> Keep
Alt + L --> Lowercase
Alt + N --> Number
Alt + P --> Prefix
Alt + R --> Replace
Alt + S --> trim Start
Alt + T --> Titlecase
Alt + U --> Uppercase
Alt + W --> strip Whitespaces
Alt + X --> suffiX
Alt + Z --> capitaliZe
Perfect!
Skorobagatko is offline   Reply With Quote
Old 11-04-2020, 07:58 PM   #45
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,128
Default

Totally
lexaproductions is offline   Reply With Quote
Old 11-05-2020, 11:10 AM   #46
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

v1.20 changelog

- fix: some buttons could be pressed even if there were no items/tracks/regions in the list
- fix: better UNDO/REDO naming when using Replace
- fix: various other small fixes
- change: Ctrl+T key for Tracks mode, Ctrl+R key for Regions mode, Ctrl+I key for Items mode
- add: Key shortcuts (the ones with Alt are clearly shown when Alt is pressed)
  • Esc to close script
  • Ctrl+Z for Undo
  • Ctrl+Shift+Z for Redo
  • Alt+A for swAp case
  • Alt+C for Clear
  • Alt+E for trim End
  • Alt+K for Keep
  • Alt+L for Lowercase
  • Alt+N for Number
  • Alt+P for Prefix
  • Alt+R for Replace
  • Alt+S for trim Start
  • Alt+T for Titlecase
  • Alt+U for Uppercase
  • Alt+W for strip Whitespaces
  • Alt+X for suffiX
  • Alt+Z for capitaliZe
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 11-05-2020, 11:20 AM   #47
Skorobagatko
Human being with feelings
 
Skorobagatko's Avatar
 
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
Default

Quote:
Originally Posted by amagalma View Post
v1.20 changelog

- fix: some buttons could be pressed even if there were no items/tracks/regions in the list
- fix: better UNDO/REDO naming when using Replace
- fix: various other small fixes
- change: Ctrl+T key for Tracks mode, Ctrl+R key for Regions mode, Ctrl+I key for Items mode
- add: Key shortcuts (the ones with Alt are clearly shown when Alt is pressed)
  • Esc to close script
  • Ctrl+Z for Undo
  • Ctrl+Shift+Z for Redo
  • Alt+A for swAp case
  • Alt+C for Clear
  • Alt+E for trim End
  • Alt+K for Keep
  • Alt+L for Lowercase
  • Alt+N for Number
  • Alt+P for Prefix
  • Alt+R for Replace
  • Alt+S for trim Start
  • Alt+T for Titlecase
  • Alt+U for Uppercase
  • Alt+W for strip Whitespaces
  • Alt+X for suffiX
  • Alt+Z for capitaliZe
not in ReaPack yet?

Skorobagatko is offline   Reply With Quote
Old 11-05-2020, 11:45 AM   #48
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

I have committed it but again it takes ages .. It should be up in a few hours..
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 11-05-2020, 01:58 PM   #49
Skorobagatko
Human being with feelings
 
Skorobagatko's Avatar
 
Join Date: Mar 2017
Location: Ukraine, Kyiv
Posts: 546
Default

Wow, it's another level. Thanks a lot!
Skorobagatko is offline   Reply With Quote
Old 11-05-2020, 09:43 PM   #50
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,128
Default

Seems to be working great!
Only thing:

I love how you made it so that when I hit the Alt key, the letters gets highlighted. Only thing is that if
Alt-R => Replace
SHIFT-Alt-R => nothing

Hit other modifiers along with the alt button should not trigger not actions?

What do you think?
lexaproductions is offline   Reply With Quote
Old 11-06-2020, 07:52 AM   #51
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by lexaproductions View Post
Seems to be working great!
Only thing:

I love how you made it so that when I hit the Alt key, the letters gets highlighted. Only thing is that if
Alt-R => Replace
SHIFT-Alt-R => nothing

Hit other modifiers along with the alt button should not trigger not actions?

What do you think?
I see what you mean.. From now on, they will work strictly as defined (which is, for example, Alt+Shift+R should not open Replace, nor any other key combination except Alt+R etc -- the same applies to all key shortcuts, Alt+key or Ctrl+key)


v1.21 changelog:
- fix: key shortcuts should now work strictly as defined
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 11-06-2020, 08:48 AM   #52
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,128
Default

🙏🏾🙏🏾🙏🏾
lexaproductions is offline   Reply With Quote
Old 12-10-2020, 08:34 PM   #53
PitchSlap
Human being with feelings
 
PitchSlap's Avatar
 
Join Date: Jan 2008
Location: Vancouver, BC
Posts: 3,795
Default

This has been a huge time saver, but I'm wondering if there's a way to have it remember the last used settings.

I use track renaming 100% of the time but it seems to randomly switch between track/items when opened.
__________________
FRs: v5 Media Explorer Requests, Global Quantization, Session View
Win10 Pro 64-bit, Reaper 6(x64), AMD 3950x, Aorus X570 Master, 64GB DDR4 3600, PowerColor Red Devil 5700XT, EVO 970 2TB, 10TB HD, Define R6
PitchSlap is offline   Reply With Quote
Old 12-11-2020, 06:39 AM   #54
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

It opens according to the last clicked context. If before opening it you had clicked on a track, it will open with tracks. Similarly for items. Takes mode is set manually.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 12-17-2020, 04:59 PM   #55
PitchSlap
Human being with feelings
 
PitchSlap's Avatar
 
Join Date: Jan 2008
Location: Vancouver, BC
Posts: 3,795
Default

Quote:
Originally Posted by amagalma View Post
It opens according to the last clicked context. If before opening it you had clicked on a track, it will open with tracks. Similarly for items. Takes mode is set manually.
Good to know, that makes sense. I thought I'd always been clicking on tracks and having it be random sometimes but I'll pay closer *attention.

*EDIT*
Unfortunately that's not how it's working for me. Even when no items are selected and the tracks were the last thing touched it will sometimes default to items (even when I'd just previously used it in track mode).
__________________
FRs: v5 Media Explorer Requests, Global Quantization, Session View
Win10 Pro 64-bit, Reaper 6(x64), AMD 3950x, Aorus X570 Master, 64GB DDR4 3600, PowerColor Red Devil 5700XT, EVO 970 2TB, 10TB HD, Define R6

Last edited by PitchSlap; 12-17-2020 at 11:14 PM.
PitchSlap is offline   Reply With Quote
Old 12-18-2020, 04:27 AM   #56
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

v1.22 changelog:
- change: items mode is automatically selected when launching the script, only if there are selected items and the last mouse click was in the arrange view, but not on an envelope


In all other cases tracks mode is automatically selected
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 12-20-2020, 08:38 PM   #57
PitchSlap
Human being with feelings
 
PitchSlap's Avatar
 
Join Date: Jan 2008
Location: Vancouver, BC
Posts: 3,795
Default

Quote:
Originally Posted by amagalma View Post
v1.22 changelog:
- change: items mode is automatically selected when launching the script, only if there are selected items and the last mouse click was in the arrange view, but not on an envelope


In all other cases tracks mode is automatically selected
Thanks for the change.
__________________
FRs: v5 Media Explorer Requests, Global Quantization, Session View
Win10 Pro 64-bit, Reaper 6(x64), AMD 3950x, Aorus X570 Master, 64GB DDR4 3600, PowerColor Red Devil 5700XT, EVO 970 2TB, 10TB HD, Define R6
PitchSlap is offline   Reply With Quote
Old 01-10-2021, 07:29 PM   #58
depaffect
Human being with feelings
 
Join Date: Oct 2020
Posts: 3
Default

This is great!

But I'm having trouble naming regions. It simply doesn't work when using a time selection - the region names don't change in the script.

When there's no time selection, it works as expected - with the limitation that you can't narrow down which regions to name.

Am I doing something dumb or is this a bug?
depaffect is offline   Reply With Quote
Old 01-11-2021, 04:06 AM   #59
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by depaffect View Post
This is great!

But I'm having trouble naming regions. It simply doesn't work when using a time selection - the region names don't change in the script.

When there's no time selection, it works as expected - with the limitation that you can't narrow down which regions to name.

Am I doing something dumb or is this a bug?
Could you make a licecap?

It should work:


Do you have loop points and time selection unlinked? Maybe you set the loop points instead of the time selection?...
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 01-16-2021, 12:41 PM   #60
sytch
Human being with feelings
 
Join Date: Feb 2017
Posts: 2
Default

Quote:
Originally Posted by depaffect View Post
This is great!

But I'm having trouble naming regions. It simply doesn't work when using a time selection - the region names don't change in the script.

When there's no time selection, it works as expected - with the limitation that you can't narrow down which regions to name.

Am I doing something dumb or is this a bug?
@amagalma It looks like I am having exactly the same problem.
https://cloud.mail.ru/public/poEC/Kf5ULSsfn

Last edited by sytch; 01-16-2021 at 01:13 PM.
sytch is offline   Reply With Quote
Old 01-16-2021, 04:45 PM   #61
GameAudioRvlzzr
Human being with feelings
 
GameAudioRvlzzr's Avatar
 
Join Date: Apr 2016
Location: Stuttgart, Germany
Posts: 217
Default

Awesome! Where has this been all my life?
GameAudioRvlzzr is offline   Reply With Quote
Old 01-21-2021, 09:22 AM   #62
Input_studio
Human being with feelings
 
Join Date: Feb 2015
Location: Matosinhos, Portugal
Posts: 23
Default

I'm also having a similar issue.
The weird thing is, is that when I try to do any action related with the regions, the UNDO and the RESET buttons blink (like in sytch gif).

Quote:
Originally Posted by sytch View Post
@amagalma It looks like I am having exactly the same problem.
https://cloud.mail.ru/public/poEC/Kf5ULSsfn
Input_studio is offline   Reply With Quote
Old 01-22-2021, 04:47 AM   #63
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Hey guys! I've just checked and confirm the bug with region renaming. I'll fix it!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 01-22-2021, 08:11 AM   #64
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

v1.23 changelog:
- fix: region renaming when less than all regions are selected
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 01-22-2021, 08:26 AM   #65
Input_studio
Human being with feelings
 
Join Date: Feb 2015
Location: Matosinhos, Portugal
Posts: 23
Default

Quote:
Originally Posted by amagalma View Post
v1.23 changelog:
- fix: region renaming when less than all regions are selected
you da man!

Working like a charm!

It seems that you've forgot to change the local version, it's still on 1.21
Input_studio is offline   Reply With Quote
Old 01-22-2021, 08:35 AM   #66
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by Input_studio View Post
It seems that you've forgot to change the local version, it's still on 1.21

:S .. Updating it now.. Thanks!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 02-19-2021, 07:01 AM   #67
dagamusik
Human being with feelings
 
dagamusik's Avatar
 
Join Date: Aug 2020
Location: Colombia
Posts: 165
Default

I found this plugin amazing amagalma! I truly thank you

Question: is there a chance to have Wildcards like in render window? or a list of the most common track names, guitars, bass, vox, drums...

That would make life so easy when importing tracks like i.e.

$p becomes percussion as a Prefix
dagamusik is offline   Reply With Quote
Old 02-19-2021, 11:19 AM   #68
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Thanks! Hmm.. I can't see how this would work...
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 02-19-2021, 11:47 AM   #69
dagamusik
Human being with feelings
 
dagamusik's Avatar
 
Join Date: Aug 2020
Location: Colombia
Posts: 165
Default

Quote:
Originally Posted by amagalma View Post
Thanks! Hmm.. I can't see how this would work...
Oh I see. And a function to save usual names, similar to what happens in ReaNoir saving palettes?
dagamusik is offline   Reply With Quote
Old 02-19-2021, 11:56 AM   #70
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Could you provide an example of how could this work in more details?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 02-19-2021, 02:24 PM   #71
dagamusik
Human being with feelings
 
dagamusik's Avatar
 
Join Date: Aug 2020
Location: Colombia
Posts: 165
Default

Quote:
Originally Posted by amagalma View Post
Could you provide an example of how could this work in more details?
This would be a rough idea of what I imagine.

I know the space I used in the image is reserved for hints, just to show you in images the concept. This combined with auto track color would speed up a lot when importing tracks into reaper.
Attached Images
File Type: png wildcards_Mesa de trabajo 1.png (45.5 KB, 131 views)
dagamusik is offline   Reply With Quote
Old 02-19-2021, 02:56 PM   #72
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by dagamusik View Post
This would be a rough idea of what I imagine.

I know the space I used in the image is reserved for hints, just to show you in images the concept. This combined with auto track color would speed up a lot when importing tracks into reaper.

Thank you for the nice mockup, but I still do not get how you would use this in practice.. Let's say you have a project with the following track names:
vox

pno

gtr 1
gtr 2
bass
oh
sn
tom1
tom2
bd
hh


What exactly would you want to do and how would this be done with your proposition? This is the part that I didn't get!
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 02-19-2021, 07:52 PM   #73
dagamusik
Human being with feelings
 
dagamusik's Avatar
 
Join Date: Aug 2020
Location: Colombia
Posts: 165
Default

For example I mix and export using a system of giving a function to every instrument to colorize tracks and to have them in order in reaper and in the file explorer. In your example that will be renamed like this:

melody vox
---
harmony pno
harmony gtr 1
harmony gtr 2
---
bass
---
perc. oh
perc. sn
perc. tom1
perc. tom2
perc. bd
perc. hh
dagamusik is offline   Reply With Quote
Old 02-20-2021, 01:57 AM   #74
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

So the idea is to use wildcards so that you don't have to type "harmony", "melody" and "perc." when using the prefix function, right?
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 02-20-2021, 07:02 AM   #75
dagamusik
Human being with feelings
 
dagamusik's Avatar
 
Join Date: Aug 2020
Location: Colombia
Posts: 165
Default

Quote:
Originally Posted by amagalma View Post
So the idea is to use wildcards so that you don't have to type "harmony", "melody" and "perc." when using the prefix function, right?
Yes that would be an example of that. Also things like , left, right, mono, clean, etc.
dagamusik is offline   Reply With Quote
Old 02-21-2021, 02:49 AM   #76
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

I'll consider it, but it is not very probable to happen as it is too much work for little benefit.
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 02-21-2021, 03:01 AM   #77
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Make as many copies of this script as you require and change the prefix to your taste:
Code:
local prefix = "Harmony"

local track_cnt = reaper.CountSelectedTracks( 0 )
if track_cnt == 0 then return end

reaper.PreventUIRefresh( 1 )
for tr = 0, track_cnt-1 do
  local track = reaper.GetSelectedTrack( 0, tr )
  local _, name = reaper.GetSetMediaTrackInfo_String( track, "P_NAME", "", false )
  reaper.GetSetMediaTrackInfo_String( track, "P_NAME", prefix .. " " .. name, true )
end
reaper.PreventUIRefresh( -1 )

reaper.Undo_OnStateChangeEx( "Add '" .. prefix .. "' to track names", 1, -1 )
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 02-22-2021, 04:01 PM   #78
dagamusik
Human being with feelings
 
dagamusik's Avatar
 
Join Date: Aug 2020
Location: Colombia
Posts: 165
Default

Hi Amagalma, I understand it could be not useful for you as it for me. This is just an idea and there's no problem writing the whole name your script will be as good as it is!

Is that code an idea for me? I haven't touched an script ever. Is that easy?

Again, thanks a lot for taking the time to answer.
dagamusik is offline   Reply With Quote
Old 02-23-2021, 07:16 AM   #79
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by dagamusik View Post
Hi Amagalma, I understand it could be not useful for you as it for me. This is just an idea and there's no problem writing the whole name your script will be as good as it is!

Is that code an idea for me? I haven't touched an script ever. Is that easy?

Again, thanks a lot for taking the time to answer.
Yes it's for you!

Open Notepad and paste inside the code above. Then save as your_preferred_name.lua (making sure that Save as type is set to All Files (*.*)) in your Reaper Resources/Scripts folder. (Action List: Show REAPER resource path in explorer).
Make as many copies as you like and change inside each copy the prefix string to whatever you need. (Harmony, perc. etc)
Import the scripts in the Action List (New Action -> Load Reascript)
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   Reply With Quote
Old 02-23-2021, 07:20 AM   #80
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is online now   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 04:10 AM.


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