a question for advanced scripting - interpolating
Posted: 22 Feb 2013 21:14
Ok Im not sure how to phrase this...but I definitely need to study - learn a bit how to achieve things like: a value-expression after some sort of trigger rises to another value but not jumps to it - or lets say it interpolates between two target values, with a non linear curve for a given amount of time....
Not sure what exactly templates I should study or ermmm - well actually I'm lost....
for example how do I achieve
(if Switch.x==1) Multiball.x goes from 0 to 1 with a specific curve and a specific speed? Or what if I dont have target values and I just want it to interpolate non-linearly from current value to bigger ones for a given period of time?
Im quite sure I havent even scratched the surface of Lemur when it comes to working with vectors, mathematics and all that stuff and that my answers are over there somewhere.
Any chance of a guidance, tips, clues? even already made templates in the user library which might include helpful scripts are welcome.
Thanks!
P.S. - Also is there sometghing wrong with sign(a) arithmetic function? Im not getting what I should - I get zero when a<0 and error/null when a>0
Not sure what exactly templates I should study or ermmm - well actually I'm lost....
for example how do I achieve
(if Switch.x==1) Multiball.x goes from 0 to 1 with a specific curve and a specific speed? Or what if I dont have target values and I just want it to interpolate non-linearly from current value to bigger ones for a given period of time?
Im quite sure I havent even scratched the surface of Lemur when it comes to working with vectors, mathematics and all that stuff and that my answers are over there somewhere.
Any chance of a guidance, tips, clues? even already made templates in the user library which might include helpful scripts are welcome.
Thanks!
P.S. - Also is there sometghing wrong with sign(a) arithmetic function? Im not getting what I should - I get zero when a<0 and error/null when a>0