|
|
Thread Tools | Display Modes |
04-29-2019, 08:44 AM | #1 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,761
|
Envelopes: RecArm-button doesn't update when toggling using EnvStateChunks (FIXED)
I noticed something just yesterday, that when I set the armstate of an envelope using EnvelopeStateChunks, it sets the envelope to recarm, but doesn't update the recarm-button in the ui.
But clicking it has no problems. I've tested it with Reaper 5.965 and the latest +dev0424/x64 release on Windows. I also checked different themes to be sure, that it wasn't a theme problem. The code I've tested it with: Code:
ultraschall={} function ultraschall.SetArmState_Envelope(TrackEnvelope, state) retval, str = reaper.GetEnvelopeStateChunk(TrackEnvelope, "", false) str=string.gsub(str, "ARM.-%c", "ARM "..state.."\n") return reaper.SetEnvelopeStateChunk(TrackEnvelope, str, false) end TrackEnvelope=reaper.GetTrackEnvelope(reaper.GetTrack(0,0),0) -- parameter state is either 0(unarmed) or 1(armed) A=ultraschall.SetArmState_Envelope(TrackEnvelope, 0) Another thing I noticed, though I'm not sure if it's a bug or a feature: When I doubleclick the recarm-button of the envelope, the envelope-points get/remove additional values:
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people |
04-29-2019, 01:23 PM | #2 |
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,117
|
Fixing for the next +dev cycle!
|
04-30-2019, 07:56 AM | #3 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,761
|
Thanks
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - ReaGirl - a GuiLib for guis working for blind people |
05-01-2019, 09:30 AM | #4 |
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 4,138
|
Thanks, envelope arm'd button display now gets updated after changing it via reaper.BR_EnvSetProperties() too!
Windows 7 / REAPER v5.975+dev0430 / SWS v2.10.0.1 / x64 Last edited by Edgemeal; 05-02-2019 at 06:50 AM. |
Thread Tools | |
Display Modes | |
|
|