-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reaper.BR_EnvSetProperties killing/ P_EXT for envelopes #1385
Comments
Thanks for the test script, confirmed. |
Thank you nofish for the commit! i have no idea where to get the new SWS version with this fix, so i can test it. Could anyone tell me? |
If you're on Win/Linux, builds for testing are here: |
Thank you ! unfortunetly not: OSX ! i guess i'll have to wait! any chance to know how often and where i should look for in the future? |
@estrica2000 (If you test let me know how it goes. :)) |
When setting a P_EXT for envelopes with reaper.GetSetEnvelopeInfo_String(Envelope, "P_EXT:example", "Some value", true)
and after use reaper.BR_EnvSetProperties , those P_EXT disappear. but if repeated they stay:
Check the gif: https://imgur.com/pJVn4AZ
Using this lua :
--====================================================================
function msg(param)
reaper.ShowConsoleMsg("\n"..tostring(param));
end
Envelope = reaper.GetSelectedEnvelope(0)
--====================================================================
if Envelope == nil then msg ("Select an envelope") return false end
--====================================================================
reaper.GetSetEnvelopeInfo_String(Envelope, "P_EXT:example", "Some value", true)
retval, value = reaper.GetSetEnvelopeInfo_String(Envelope, "P_EXT:example", "", false)
msg ("P_EXT:example holds value:"..value)
local br_env = reaper.BR_EnvAlloc(Envelope, false )
reaper.BR_EnvSetProperties(
br_env,
true,
true,
true,
true,
10,
0,
true
)
--====================================================================
reaper.BR_EnvFree( br_env, true )
-- after using reaper.BR_EnvAlloc the value disappears but only on the first run on that envelope
retval, value = reaper.GetSetEnvelopeInfo_String(Envelope, "P_EXT:example", "", false)
msg ("P_EXT:example holds value:"..value)
The text was updated successfully, but these errors were encountered: