View Single Post
Old 11-13-2023, 03:03 PM  
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 16,335
Default

Quote:
Originally Posted by Sexan View Post
Thanks for Envelope thingy.

Code:
retval, trackidx, itemidx, takeidx, fxidx, parm = reaper.GetTouchedOrFocusedFX( 0 )
track = reaper.GetTrack(0,0)
reaper.GetFXEnvelope( track, fxidx, parm, true )
reaper.TrackList_AdjustWindows( true )
running this without touching anything (reaeq in container) shows bypass automation of container.
Maybe has connection with that previous undo bug that creates same bypass (still not fixed)?
https://forum.cockos.com/showthread.php?t=284335

You should validate that retval is true prior to using parm/etc. Though I suppose on failure it would be helpful to make parm=-1
Justin is offline   Reply With Quote