diff --git a/Items Editing/ED_Select items with take FX in active take.lua b/Items Editing/ED_Select items with take FX in active take.lua index d05636fdf..8a82b01a9 100644 --- a/Items Editing/ED_Select items with take FX in active take.lua +++ b/Items Editing/ED_Select items with take FX in active take.lua @@ -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+ diff --git a/Items Editing/ED_Select items with take FX.lua b/Items Editing/ED_Select items with take FX.lua index 7cca57299..a25bf59b6 100644 --- a/Items Editing/ED_Select items with take FX.lua +++ b/Items Editing/ED_Select items with take FX.lua @@ -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+ diff --git a/Items Editing/ED_Set envelope to maximum value within time selection.lua b/Items Editing/ED_Set envelope to maximum value within time selection.lua index d0b162bdc..0ce9b2045 100644 --- a/Items Editing/ED_Set envelope to maximum value within time selection.lua +++ b/Items Editing/ED_Set envelope to maximum value within time selection.lua @@ -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+ diff --git a/Items Editing/ED_Set envelope to minimum value within time selection.lua b/Items Editing/ED_Set envelope to minimum value within time selection.lua index 3ae0baf8f..0001891a1 100644 --- a/Items Editing/ED_Set envelope to minimum value within time selection.lua +++ b/Items Editing/ED_Set envelope to minimum value within time selection.lua @@ -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+ diff --git a/Tracks Properties/ED_Toggle free item positioning mode with track name marker.lua b/Tracks Properties/ED_Toggle free item positioning mode with track name marker.lua new file mode 100644 index 000000000..9832e49ae --- /dev/null +++ b/Tracks Properties/ED_Toggle free item positioning mode with track name marker.lua @@ -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)