Skip to content

Commit

Permalink
Added donate links to ED scripts, added new script (ReaTeam#76)
Browse files Browse the repository at this point in the history
* 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
mkruselj authored and cfillion committed Nov 27, 2017
1 parent b55a10e commit 1e8278b
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @description Select items with take FX in active take
* @about Fairly self-explanatory - this script will select all items that have take FX loaded in the active take (item remains unselected if it has take FX in inactive takes).
* @author EvilDragon
* @donate https://www.paypal.me/EvilDragon
* @version 1.0
* Licence: GPL v3
* REAPER: 5.0+
Expand Down
1 change: 1 addition & 0 deletions Items Editing/ED_Select items with take FX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @description Select items with take FX
* @about Fairly self-explanatory - this script will select all items that have take FX loaded in any take - active or not.
* @author EvilDragon
* @donate https://www.paypal.me/EvilDragon
* @version 1.0
* Licence: GPL v3
* REAPER: 5.0+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @description Set envelope to minimum value within time selection
* @about This script will set all envelope points within time selection to maximum value, including edges of time selection. Works on both track and take envelopes.
* @author EvilDragon
* @donate https://www.paypal.me/EvilDragon
* @version 1.0
* Licence: GPL v3
* REAPER: 5.0+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @description Set envelope to minimum value within time selection
* @about This script will set all envelope points within time selection to minimum value, including edges of time selection. Works on both track and take envelopes.
* @author EvilDragon
* @donate https://www.paypal.me/EvilDragon
* @version 1.0
* Licence: GPL v3
* REAPER: 5.0+
Expand Down
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)

0 comments on commit 1e8278b

Please sign in to comment.