View Single Post
Old 05-16-2019, 03:10 AM   #4
Human being with feelings
Breeder's Avatar
Join Date: Nov 2010
Location: Croatia
Posts: 2,282

Originally Posted by _Stevie_ View Post
v5.978+dev0515 - May 15 2019[*]+ Reascript: for automation items, CountEnvelopePointsEx, GetEnvelopePointEx, SetEnvelopePointEx, and DeleteEnvelopePointEx all use point index based on one full loop iteration (see documentation)
Awesome - one problem only - GetEnvelopePointEx() always returns false for selectedOutOptional.

I presume this is because looped AI can have different point selection per iteration so this function now may break old scripts.

Thinking out loud, I think the most elegant solution would be just one function that translates old functions point id to single-iteration point id. Or yet another Ex2 set of these API functions? Or both?
I think having both translation function and Ex2 functions should cover it all and it will also keep old scripts working?

Last edited by Breeder; 05-16-2019 at 03:28 AM.
Breeder is offline   Reply With Quote