forked from ReaTeam/ReaScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added donate links to ED scripts, added new script (ReaTeam#76)
* Added donate links * Added donate links * Added donate links * Added donate links * Added new script in Tracks Properties ED_Toggle free item positioning mode with track name marker.lua * Update ED_Select items with take FX in active take.lua * Update ED_Select items with take FX.lua * Update ED_Set envelope to maximum value within time selection.lua * Update ED_Set envelope to minimum value within time selection.lua * Update ED_Toggle free item positioning mode with track name marker.lua
- Loading branch information
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
Tracks Properties/ED_Toggle free item positioning mode with track name marker.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--[[ | ||
* @description Toggle free item positioning mode with track name marker | ||
* @about This script will enable FIPM for selected track(s) and add a [F] prefix to the track names to show they are in that mode | ||
* @author EvilDragon | ||
* @donate https://www.paypal.me/EvilDragon | ||
* @version 1.0 | ||
* Licence: GPL v3 | ||
* REAPER: 5.0+ | ||
* Extensions: none | ||
--]] | ||
|
||
num_sel_tracks = reaper.CountSelectedTracks(0) | ||
|
||
reaper.Undo_BeginBlock() | ||
|
||
if num_sel_tracks > 0 then | ||
reaper.Main_OnCommand(40641, 0) -- toggle FIPM | ||
|
||
i = 0 | ||
while i < num_sel_tracks do | ||
track_idx = reaper.GetSelectedTrack(0, i) | ||
retval, track_name = reaper.GetSetMediaTrackInfo_String(track_idx, "P_NAME", "", false) | ||
|
||
FIPM_label = string.sub(track_name, 1, 4) | ||
str_remainder = string.sub(track_name, 5) | ||
|
||
FIPM_mode = reaper.GetMediaTrackInfo_Value(track_idx, "B_FREEMODE") | ||
|
||
if FIPM_mode == 1 and FIPM_label ~= "[F] " then | ||
reaper.GetSetMediaTrackInfo_String(track_idx, "P_NAME", "[F] " .. track_name, true) | ||
elseif FIPM_mode == 0 and FIPM_label == "[F] " then | ||
reaper.GetSetMediaTrackInfo_String(track_idx, "P_NAME", str_remainder, true) | ||
end | ||
|
||
i = i + 1 | ||
end | ||
end | ||
|
||
reaper.Undo_EndBlock("Toggle free item positioning mode with track name marker", -1) |