|
![]() |
|
Thread Tools | Display Modes |
![]() |
#1 |
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 5,336
|
![]()
On Windows, if a script 1) selects all tracks 2) TrackList_AdjustWindows 3) Main_OnCommand(40297), the tracks will visually appear as selected until TrackList_AdjustWindows happens again. The IDE must be closed to duplicate. (This was originally reported as a SWS bug.)
Code:
for i = 0, reaper.CountTracks(nil) - 1 do local track = reaper.GetTrack(nil, i) reaper.SetTrackSelected(track, true) end reaper.TrackList_AdjustWindows(false) reaper.Main_OnCommand(40297, 0) -- Track: Unselect (clear selection of) all tracks ![]() (iReaScript shown in the gif does an implicit TrackList_AdjustWindows after executing CountSelectedTracks.)
__________________
🎁 Donate (PayPal) | Sponsor (GitHub) | The Endless Journey (Keyboard Ensemble) ReaPack, a package manager for REAPER | SWS 2.14 is now available in ReaPack [new!] Developer tools: Lua profiler | Interactive ReaScript | ReaPack Editor | ReaImGui Last edited by cfillion; 01-25-2024 at 09:37 PM. |
![]() |
![]() |
![]() |
#2 |
Administrator
Join Date: Mar 2007
Location: NY
Posts: 16,828
|
![]()
Fixing, thanks.
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|