View Single Post
Old 07-24-2015, 10:35 AM   #147
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,060
Default

It would be nice to have an UpdateTCP, just lile we wave update items and arrange.

TCP is not uodpate whdn changing arm state of an envelope (with sws api functions - arm button stay off while envelope panels shows the envelope is armed) or when changing points values (display value stay the same, no matter what).

Currently I use Heda's code

Code:
function HedaRedrawHack()
	reaper.PreventUIRefresh(1)

	track=reaper.GetTrack(0,0)

	trackparam=reaper.GetMediaTrackInfo_Value(track, "I_FOLDERCOMPACT")	
	if trackparam==0 then
		reaper.SetMediaTrackInfo_Value(track, "I_FOLDERCOMPACT", 1)
	else
		reaper.SetMediaTrackInfo_Value(track, "I_FOLDERCOMPACT", 0)
	end
	reaper.SetMediaTrackInfo_Value(track, "I_FOLDERCOMPACT", trackparam)

	reaper.PreventUIRefresh(-1)
	
end
HedaRedrawHack()
Thanks for listening !

Last edited by X-Raym; 07-24-2015 at 12:30 PM.
X-Raym is offline   Reply With Quote