Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Thread Tools Display Modes
Old 01-25-2024, 09:32 PM   #1
Human being with feelings
cfillion's Avatar
Join Date: May 2015
Location: Québec, Canada
Posts: 4,960
Default Missing refresh when running "Unselect (clear selection of) all tracks" from a script

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.)

for i = 0, reaper.CountTracks(nil) - 1 do
  local track = reaper.GetTrack(nil, i)
  reaper.SetTrackSelected(track, true)

reaper.Main_OnCommand(40297, 0) -- Track: Unselect (clear selection of) all tracks
REAPER v7.09 on Windows 10:

(iReaScript shown in the gif does an implicit TrackList_AdjustWindows after executing CountSelectedTracks.)

Last edited by cfillion; 01-25-2024 at 09:37 PM.
cfillion is offline   Reply With Quote
Old 01-26-2024, 05:26 AM   #2
schwa's Avatar
Join Date: Mar 2007
Location: NY
Posts: 15,792

Fixing, thanks.
schwa is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 12:52 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.