I've not had any luck finding a workaround here with the FaderPort.
It's really quite broken. I know a lot of people here use control surfaces with motorized faders, has no one run into a problem with using scripts to programmatically change track selection, or actions that do the same?
Once you select a track programmatically, not only does the control surface not receive the correct volume (or other state such as mute and solo) of the newly selected track, but adjusting the selected track in the MCP doesn't send the new volume to the control surface either.
For example:
Code:
local track = reaper.GetTrack(0, 0)
reaper.SetOnlyTrackSelected(track)
-- Track: Set first selected track as last touched track.
reaper.Main_OnCommandEx(40914, 0, 0)
reaper.SetMixerScroll(track)
This won't send the first track's state to the control surface.
Another blind attempt to workaround this was:
Code:
reaper.CSurf_ResetAllCachedVolPanStates()
reaper.TrackList_UpdateAllExternalSurfaces()
Alas no effect.
When it comes to programmatically focusing a track in a control surface compatible way, I've completely hit a brick wall. For me, the control surface only
ever updates when I use the mouse and manually click on a track. I've not found any other way that updates the control surface.
Any help would be very much appreciated.