FORUM arduino

FORUM arduino



SearchSearch   Users   Registration   Entrance
Today: 31.01.2026 - 05:23:13
Pages:  1  

Hiding tracks in ReaScript doesn't update visually?

MessageAuthor

I created a ReaScript action to duplicate a track and hide the original, using the following commands RPR_SetMediaTrackInfo_Value(TrackID, "B_SHOWINTCP", False) RPR_SetMediaTrackInfo_Value(TrackID, "B_SHOWINMIXER", False) ...but it seems that, although the track does get hidden, Reaper doesn't realize it's hidden until I change a value in the Track Manager. IE, when I use the action, the track stays visible, but Track Manager tells me it should be hidden, and if I click something in Track Manager, it suddenly updates to the visibility it should have. Is this a bug, or do I need to use another command in ReaScript to update things?




Kitch

Expert


Statistics:
Messages: 414
Registration: 11.22.2003
30.09.23 - 03:48:09
Message # 1
RE: Hiding tracks in ReaScript doesn't update visually?

Try RPR_TrackList_AdjustWindows(False) Code:




Stinky

Expert


Statistics:
Messages: 86
Registration: 10.03.2003
30.09.23 - 03:52:14
Message # 2
RE: Hiding tracks in ReaScript doesn't update visually?

RPR_UpdateArrange() is sometimes needed when modifying item lengths/selections etc. and RPR_UpdateTimeline() is for refreshing markers/ruler, for example.




///MZG

Expert


Statistics:
Messages: 5,807
Registration: 01.21.2003
30.09.23 - 03:59:58
Message # 3
RE: Hiding tracks in ReaScript doesn't update visually?
Next topic: Big Ben-Can you hear the difference?
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

inside: PunBB 0.99.1