From 557033fba127bd2536ab70961b1bea2138676137 Mon Sep 17 00:00:00 2001 From: Grayson Solis <109297237+grayson-solis@users.noreply.github.com> Date: Thu, 3 Jul 2025 23:57:22 -0400 Subject: [PATCH 1/3] Release List FX Parameter Indexes v1.0 --- ...graysonsolis_List FX Parameter Indexes.lua | 11 ++++ ...graysonsolis_List FX Parameter Indexes.lua | 56 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 Development/graysonsolis_List FX Parameter Indexes.lua create mode 100644 Development/graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua diff --git a/Development/graysonsolis_List FX Parameter Indexes.lua b/Development/graysonsolis_List FX Parameter Indexes.lua new file mode 100644 index 000000000..c5fd16185 --- /dev/null +++ b/Development/graysonsolis_List FX Parameter Indexes.lua @@ -0,0 +1,11 @@ +-- @description List FX Parameter Indexes +-- @author Grayson Solis +-- @version 1.0 +-- @metapackage +-- @provides graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua +-- @about +-- Directions: +-- 1) Select a track in REAPER. +-- 2) Run this script. +-- 3) Open the ReaScript Console (View → Show Console) to see the output. + diff --git a/Development/graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua b/Development/graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua new file mode 100644 index 000000000..7151e9aa3 --- /dev/null +++ b/Development/graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua @@ -0,0 +1,56 @@ +-- @noindex + +--[[ +@version 1.0 +@author Grayson Solis +@description Prints each FX on the first selected track along with all of its parameter indexes +@website https://graysonsolis.com + +Directions: + 1) Select a track in REAPER. + 2) Run this script. + 3) Open the ReaScript Console (View → Show Console) to see the output. +]] + +local track = reaper.GetSelectedTrack(0, 0) +if not track then + reaper.ShowMessageBox( + "Error: No track selected.\nPlease select a track and run again.", + "No Track Selected", + 0 + ) + return +end + +reaper.ClearConsole() +local _, trackName = reaper.GetTrackName(track, "") +reaper.ShowConsoleMsg("FX parameter indexes for track: " .. trackName .. "\n\n") + +local fxCount = reaper.TrackFX_GetCount(track) +if fxCount == 0 then + reaper.ShowConsoleMsg(" (No FX found on this track.)\n") + return +end + +for fx_idx = 0, fxCount - 1 do + local _, fxName = reaper.TrackFX_GetFXName(track, fx_idx, "") + fxName = fxName or "(Unknown FX name)" + reaper.ShowConsoleMsg(string.format("FX #%d: \"%s\"\n", fx_idx, fxName)) + + local paramCount = reaper.TrackFX_GetNumParams(track, fx_idx) + if paramCount == 0 then + reaper.ShowConsoleMsg(" (No parameters for this FX)\n\n") + else + for param_idx = 0, paramCount - 1 do + local _, paramName = reaper.TrackFX_GetParamName(track, fx_idx, param_idx, "") + paramName = paramName or "(Unknown param name)" + reaper.ShowConsoleMsg( + string.format(" Param %d → \"%s\"\n", param_idx, paramName) + ) + end + reaper.ShowConsoleMsg("\n") + end +end + +reaper.ShowConsoleMsg("→ End of list.\n") + From 7e707fa3e78f89560111d90c8b970479c82b1e9b Mon Sep 17 00:00:00 2001 From: Christian Fillion Date: Tue, 8 Jul 2025 01:45:12 -0400 Subject: [PATCH 2/3] rename to sentence case, remove metapackage, s/indexes/indices/ --- ...graysonsolis_List FX Parameter Indexes.lua | 11 ---- ...graysonsolis_List FX parameter indices.lua | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 11 deletions(-) delete mode 100644 Development/graysonsolis_List FX Parameter Indexes.lua create mode 100644 Development/graysonsolis_List FX parameter indices.lua diff --git a/Development/graysonsolis_List FX Parameter Indexes.lua b/Development/graysonsolis_List FX Parameter Indexes.lua deleted file mode 100644 index c5fd16185..000000000 --- a/Development/graysonsolis_List FX Parameter Indexes.lua +++ /dev/null @@ -1,11 +0,0 @@ --- @description List FX Parameter Indexes --- @author Grayson Solis --- @version 1.0 --- @metapackage --- @provides graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua --- @about --- Directions: --- 1) Select a track in REAPER. --- 2) Run this script. --- 3) Open the ReaScript Console (View → Show Console) to see the output. - diff --git a/Development/graysonsolis_List FX parameter indices.lua b/Development/graysonsolis_List FX parameter indices.lua new file mode 100644 index 000000000..0ae574a2e --- /dev/null +++ b/Development/graysonsolis_List FX parameter indices.lua @@ -0,0 +1,52 @@ +-- @description List FX parameter indices +-- @author Grayson Solis +-- @version 1.0 +-- @about +-- Prints each FX on the first selected track along with all of its parameter indices. +-- +-- Directions: +-- 1) Select a track in REAPER. +-- 2) Run this script. +-- 3) Open the ReaScript Console (View → Show Console) to see the output. + +local track = reaper.GetSelectedTrack(0, 0) +if not track then + reaper.ShowMessageBox( + "Error: No track selected.\nPlease select a track and run again.", + "No Track Selected", + 0 + ) + return +end + +reaper.ClearConsole() +local _, trackName = reaper.GetTrackName(track, "") +reaper.ShowConsoleMsg("FX parameter indices for track: " .. trackName .. "\n\n") + +local fxCount = reaper.TrackFX_GetCount(track) +if fxCount == 0 then + reaper.ShowConsoleMsg(" (No FX found on this track.)\n") + return +end + +for fx_idx = 0, fxCount - 1 do + local _, fxName = reaper.TrackFX_GetFXName(track, fx_idx, "") + fxName = fxName or "(Unknown FX name)" + reaper.ShowConsoleMsg(string.format("FX #%d: \"%s\"\n", fx_idx, fxName)) + + local paramCount = reaper.TrackFX_GetNumParams(track, fx_idx) + if paramCount == 0 then + reaper.ShowConsoleMsg(" (No parameters for this FX)\n\n") + else + for param_idx = 0, paramCount - 1 do + local _, paramName = reaper.TrackFX_GetParamName(track, fx_idx, param_idx, "") + paramName = paramName or "(Unknown param name)" + reaper.ShowConsoleMsg( + string.format(" Param %d → \"%s\"\n", param_idx, paramName) + ) + end + reaper.ShowConsoleMsg("\n") + end +end + +reaper.ShowConsoleMsg("→ End of list.\n") From 2c452c059c1a8c692fbaebab358157648c87f335 Mon Sep 17 00:00:00 2001 From: Christian Fillion Date: Tue, 8 Jul 2025 01:45:41 -0400 Subject: [PATCH 3/3] remove the extra file --- ...graysonsolis_List FX Parameter Indexes.lua | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 Development/graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua diff --git a/Development/graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua b/Development/graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua deleted file mode 100644 index 7151e9aa3..000000000 --- a/Development/graysonsolis_List FX Parameter Indexes/graysonsolis_List FX Parameter Indexes.lua +++ /dev/null @@ -1,56 +0,0 @@ --- @noindex - ---[[ -@version 1.0 -@author Grayson Solis -@description Prints each FX on the first selected track along with all of its parameter indexes -@website https://graysonsolis.com - -Directions: - 1) Select a track in REAPER. - 2) Run this script. - 3) Open the ReaScript Console (View → Show Console) to see the output. -]] - -local track = reaper.GetSelectedTrack(0, 0) -if not track then - reaper.ShowMessageBox( - "Error: No track selected.\nPlease select a track and run again.", - "No Track Selected", - 0 - ) - return -end - -reaper.ClearConsole() -local _, trackName = reaper.GetTrackName(track, "") -reaper.ShowConsoleMsg("FX parameter indexes for track: " .. trackName .. "\n\n") - -local fxCount = reaper.TrackFX_GetCount(track) -if fxCount == 0 then - reaper.ShowConsoleMsg(" (No FX found on this track.)\n") - return -end - -for fx_idx = 0, fxCount - 1 do - local _, fxName = reaper.TrackFX_GetFXName(track, fx_idx, "") - fxName = fxName or "(Unknown FX name)" - reaper.ShowConsoleMsg(string.format("FX #%d: \"%s\"\n", fx_idx, fxName)) - - local paramCount = reaper.TrackFX_GetNumParams(track, fx_idx) - if paramCount == 0 then - reaper.ShowConsoleMsg(" (No parameters for this FX)\n\n") - else - for param_idx = 0, paramCount - 1 do - local _, paramName = reaper.TrackFX_GetParamName(track, fx_idx, param_idx, "") - paramName = paramName or "(Unknown param name)" - reaper.ShowConsoleMsg( - string.format(" Param %d → \"%s\"\n", param_idx, paramName) - ) - end - reaper.ShowConsoleMsg("\n") - end -end - -reaper.ShowConsoleMsg("→ End of list.\n") -