View Single Post
Old 07-05-2021, 06:09 AM  
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Location: Croatia
Posts: 2,390
Default

Something got seriously messed up with envelope API.

This script should move selected point to start of time selection but it doesn't.



Example project here
Code:
local envelope = reaper.GetSelectedEnvelope(0)
local p, t, v, shape, tension, s = reaper.GetEnvelopePointEx(envelope, 0, 1)
reaper.SetEnvelopePointEx(envelope, 0, 1, 7, v, shape, tension, true, true)
reaper.Envelope_SortPointsEx(envelope, 0)
Attached Images
File Type: gif presentation.gif (25.2 KB, 482 views)
Attached Files
File Type: rpp test.rpp (6.2 KB, 19 views)
Breeder is offline   Reply With Quote