02-17-2014, 09:07 PM | #1 |
Human being with feelings
Join Date: Feb 2008
Posts: 2,057
|
Project is not updated when using "InsertTrackAtIndex()"
"Update" API broken when it comes to adding tracks. Python and EEL have same behavior.
does not update the scroll bar, cannot scroll (except with mousewheel) to lowest track unless I do something to force scroll bar update (add track via actions, do some kind of zoom action) Code:
// update functions are useless here. loop(30, index = CountTracks(); InsertTrackAtIndex(index, 0); ); UpdateArrange(); UpdateTimeline(); TrackList_AdjustWindows(False); // <-- not useless actually |
08-02-2017, 10:58 AM | #2 |
Human being with feelings
Join Date: Jul 2010
Location: Slovakia
Posts: 2,589
|
This is still present in v5.40. And there seems to be a bigger problem than this which can lead to deletion of items as I reported here:
https://forum.cockos.com/showthread.php?p=1871787
__________________
Script: Folder items (Cubase/Studio One style) | Donations | Mixing & Mastering Services |
08-06-2017, 10:49 AM | #3 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,117
|
Yeah, we can improve this.
For best compatibility with old versions, I suggest adding: Code:
Undo_OnStateChangeEx("whatever",-1,-1) |
Thread Tools | |
Display Modes | |
|
|