generated from cfillion/reapack-repository-template
-
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.
Create smandrap_Select all visible tracks in Mixer.lua
- Loading branch information
Showing
1 changed file
with
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- @description Select all visible tracks in Mixer | ||
-- @author smandrap | ||
-- @version 1.0 | ||
-- @donation https://paypal.me/smandrap | ||
-- @about | ||
-- Does what it says. | ||
|
||
reaper.Undo_BeginBlock() | ||
reaper.Main_OnCommand(40297, 0) -- Unselect All | ||
|
||
for i = 0, reaper.CountTracks(-1) - 1 do | ||
local t = reaper.GetTrack(-1, i) | ||
if reaper.IsTrackVisible(t, true) and reaper.GetMediaTrackInfo_Value(t, 'I_MCPW') > 0 then | ||
reaper.SetTrackSelected(t, true) | ||
end | ||
end | ||
|
||
reaper.Undo_EndBlock("Select All visible tracks in Mixer", 0) |