- 1 Introduction
- 2 Pack Content
- 3 Screenshots
- 4 Usage
- 5 Example
- 6 Modding
- 7 New Pattern Format (2020-09-20)
- 8 Feature Requests
- 9 Installation
- 10 Notes
- 11 Purchase
The following scripts are meant to quickly rename various kind of REAPER elements.
With this system, with one single line of input, you can add prefix and suffix, but you also have access to a large access of wildcards (values that will be replaced with specific elements values (like the volume for items).
The most advanced feature is the counter system: you can have several sets of counters, linked together. This feature was meant for samples pack naming. More details below.
The items version of this scripts was sponsored by Soundiron. Thanks!
|X-Raym_Rename selected items with patterns.lua||Items Properties||2020-11-13||1.2.6|
|X-Raym_Rename selected items with patterns_v2.lua||Items Properties||2023-01-05||2.7|
|X-Raym_Rename markers in time selection or at edit cursor position with patterns.lua||Markers Regions||2020-11-13||1.2.1|
|X-Raym_Rename markers in time selection or at edit cursor position with patterns_v2.lua||Markers Regions||2021-08-03||2.2|
|X-Raym_Rename markers selected in region and marker manager with patterns_v2.lua||Markers Regions||Screenshot||2021-06-12||2.0.3|
|X-Raym_Rename regions in time selection or current region with patterns.lua||Markers Regions||2020-11-13||1.1.1|
|X-Raym_Rename regions in time selection or current region with patterns_v2.lua||Markers Regions||2021-08-02||2.2|
|X-Raym_Rename regions selected in region and marker manager with patterns_v2.lua||Markers Regions||Screenshot||2020-11-13||2.0.2|
|X-Raym_Rename selected tracks with patterns.lua||Tracks||2020-11-13||1.0.1|
The scripts works by detecting patterns separated by a separator characters chosen right in the user input window (usually,
_). Words followed by
word=1 create a counter. When the ending number is reached during the count, it will cause the previous counter on the left to increment by 1.
Here are some common cases. Only symbols and wildcards have to match.
Leading Zeros Counters
The following wildcards are common to all scripts in this pack:
$name= insert the current element name.
$number= insert the sequential number from selection order
$project= the name of the project file, without the .rpp extension.
$bpm= the rounded bpm of the project
$blank= extra blank line if needed
!= these are deleted. it can be used for deleting sep characters or creating unnamed counters
The item version has specific wildcards:
$itemnumber= insert the sequential number of the item on its track
$track= insert the track name that the item is on
$tracknumber= insert the track number that the item is on, starting from 1 (the top track)
$parenttrack= the name of the parent track that the item’s track is foldered under.
$parenttop[i]= same as parent track but trop level. [i] is optional.
$scale= iterate scale notes from note name. Chromatic. Format: A1, A#-1… Case sensitive from user input.
$marker= comma separated list of markers names for markers inside the item edges
$region= last region from item pos if item pos is inside it (aka, current region from item position)
$notes= item notes
@itemnote= first empty item notes.
$iregion= rename with marker id number within the current region
$iregiont= rename with marker id number within the current region per track
$folder= list of the track names parenting of the item
$takemarker= first take marker
$letter= lowercase letter counter (Screenshot)
$uletter= uppercase letter counter
There is several ways to determine items order for your counters:
time= uses absolute timeline position across all tracks. If two items start at the same time, the item on the higher track (lower track number) comes first.
track= counts all items on a single track, then restarts all counters when it moves to items on the next track
wrap= counts all items on a single track from left to right, then continues the count where it left off at the beginning of the next track
Here is a complex case, with one word, three named counters, limits, reverse and leading zeros.
bell_vel-122_round-1_val-001 bell_vel-122_round-1_val-002 bell_vel-122_round-2_val-001 bell_vel-122_round-2_val-002 bell_vel-122_round-3_val-001 bell_vel-122_round-3_val-002 bell_vel-122_round-4_val-001 bell_vel-122_round-4_val-002 bell_vel-121_round-1_val-001 bell_vel-121_round-1_val-002 bell_vel-121_round-2_val-001 bell_vel-121_round-2_val-002 bell_vel-121_round-3_val-001 bell_vel-121_round-3_val-002 bell_vel-121_round-4_val-001 bell_vel-121_round-4_val-002 bell_vel-120_round-1_val-001 bell_vel-120_round-1_val-002 bell_vel-120_round-2_val-001 bell_vel-120_round-2_val-002 bell_vel-120_round-3_val-001 bell_vel-120_round-3_val-002 bell_vel-120_round-4_val-001 bell_vel-120_round-4_val-002
You can mod these scripts to save custom inputs, deactivate popup or change advanced settings, without altering the main script, by using Preset script.
New Pattern Format (2020-09-20)
I just released version 2 of this scripts as new actions. They have similar name but “_v2” as suffix. Note: I didn’t made the track version for now, cause I didn’t have the need for it but you can request it if needed. Here form the changelog:
# Limit (restart condition) can be increment count or time distance if time unit if specified
+ Repeatitor (increment condition) can be increment count or time distance if time unit if specified
+ Restart jump added as fifth parameter
There is also new wildcard
iregionfor index in region (markers version only currently)
$scalefor musical notes like G# etc
@itemnote(item version) first empty item notes. @ are pre-abstraction wildcards (it replaces a part of your input).
This new pattern format is far more flexible. I’ll only update v2 of the script from now. All this settings can be quite confusing, so you can find examples on this Gist page.
Miss a wildcard? Let me know!
By purchasing this product, you are supporting my free scripting. Thanks!
Thanks to Nofish for having set SWS Loudness functions available from ReaScripts!