Old 10-03-2018, 02:09 AM   #1
Cedrik0s
Human being with feelings
 
Join Date: Oct 2014
Posts: 77
Default Changing track visibility won't refresh views.

Hi there.

I am changing tracks visibility with RPR_SetMediaTrackInfo_Value(track, "B_SHOWINTCP", True);

At the end of the script RPR_UpdateArrange() is called.

But the arrange view is not refreshing with the newly visible tracks.
(same for mixer view and Track Manager view)

The only way to force refresh the views is creating a new track. Then all the tracks I made visible are actually visible.

What am I supposed to call to force refresh?

Thanks a lot.
Cedrik0s is offline   Reply With Quote
Old 10-03-2018, 02:15 AM   #2
Cedrik0s
Human being with feelings
 
Join Date: Oct 2014
Posts: 77
Default

Addendum:
The real reason I want to make these tracks visible is because I cannot select an item from the script if it's on a track that is not visible.
Since my script must select some items, potentially on hidden tracks, I want to force the tracks they're on to be visible.
If I do, the items are actually selected, but the views don't show the tracks made visible, so it leaves the situation in an unclear state.
Cedrik0s is offline   Reply With Quote
Old 10-03-2018, 02:25 AM   #3
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

RPR_TrackList_AdjustWindows(False)
cfillion is offline   Reply With Quote
Old 10-03-2018, 02:59 AM   #4
Cedrik0s
Human being with feelings
 
Join Date: Oct 2014
Posts: 77
Default

Quote:
Originally Posted by cfillion View Post
RPR_TrackList_AdjustWindows(False)
Great cfillion, it works!
Thanks a lot!
Cedrik0s 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 04:03 PM.


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