View Single Post
Old 05-06-2020, 11:43 AM   #9
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

Quote:
Originally Posted by cfillion View Post
Setting I_HEIGHTOVERRIDE to 1 should result in the theme's minimum track height being used.

Hmm, this sets the collapsed trackheight, but only after I clicked on the track to select it. Before that, it will be ignored.
Not even UpdateArrange seems to have an effect on that.

Code:
fromTrack = reaper.GetTrack(0,0)
A,B=reaper.SetMediaTrackInfo_Value(fromTrack, "I_HEIGHTOVERRIDE", 1)
reaper.UpdateArrange()
Edit: Correction: will be updated only, when I change the track-selection-state of a track.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote