Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 12-29-2023, 03:50 PM   #1
MathieuC
Human being with feelings
 
Join Date: Apr 2021
Location: Brest, France
Posts: 52
Default [SOLVED] Fixed lanes doesn't respect reaper.SetMediaTrackInfo_Value

Hello,
I can't get tracks with fixed lanes enabled to respect
Code:
reaper.SetMediaTrackInfo_Value( track, "I_HEIGHTOVERRIDE", 105)
Quick test :
1- new project
2- create a track with fixed lanes
3- minimize the track manually
4- try the following code
Code:
    track=reaper.GetTrack(0,0)
    reaper.SetMediaTrackInfo_Value( track, "I_HEIGHTOVERRIDE", 105)
Track isn't resized.
I also tried SWS height "_XENAKIOS_SELTRAXHEIGHTA" and it works. the default "minimize all tracks" option also works...so...I'm missing something I guess, but what ?
__________________
Various scripts can be found here : https://github.com/MathieuCGit -- Donation is always welcome : https://paypal.me/MathieuCONAN -- or buy me a coffee : https://www.buymeacoffee.com/mathieucgit

Last edited by MathieuC; 12-30-2023 at 04:21 AM.
MathieuC is offline   Reply With Quote
Old 12-29-2023, 04:59 PM   #2
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Maybe you just need to force TCP to redraw?

Code:
   track=reaper.GetTrack(0,0)
   reaper.SetMediaTrackInfo_Value( track, "I_HEIGHTOVERRIDE", 105)
   reaper.TrackList_AdjustWindows(true)
Hmmmm seems to work best (like regular tracks) when fixed lane track is set to Small lanes mode.

Last edited by Edgemeal; 12-29-2023 at 05:09 PM.
Edgemeal is offline   Reply With Quote
Old 12-30-2023, 04:20 AM   #3
MathieuC
Human being with feelings
 
Join Date: Apr 2021
Location: Brest, France
Posts: 52
Default

Hello Edgemeal


Ahah ! So obvious I totaly missed the point ^_^'


thanks !
__________________
Various scripts can be found here : https://github.com/MathieuCGit -- Donation is always welcome : https://paypal.me/MathieuCONAN -- or buy me a coffee : https://www.buymeacoffee.com/mathieucgit
MathieuC is offline   Reply With Quote
Reply

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 05:55 AM.


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