FIXED (v5.979)
This script should give time of first envelope point in AI.
Works ok if there's the start edge point present, but when I delete it, it returns 'impossible' (outside of AI) value.
Code:
reaper.ClearConsole()
function msg(m)
return reaper.ShowConsoleMsg(tostring(m) .. "\n")
end
track = reaper.GetSelectedTrack(0,0)
env = reaper.GetTrackEnvelope(track, 0)
retval, time, value, shape, tension, selected = reaper.GetEnvelopePointEx(env, 0, 0)
msg(time)
ruler is set to seconds
R5.95
edit:
It seems if the start edge point is missing the returned time value gets
relative to AI start?, is this intended behaviour?
edit2:
Yes, seems to get relative indeed.