-
Accumulate values
Hi all,
I’m kind of beginning with expressions in After Effects, and most of its grammar is still quite foggy to me.I’ve been successing to achieve something I’ve been trying to do with a video I’m working on, up to a point, where I figured that what I needed in my script was a sort of accumulation of values request.
I’ve been reading here and there on the Cow forums solutions to do so, but could never translate it into my own needs. Here is my problem:
I’m working on very slow motion video that should speed up and slow down according to the audio that accompanies it.
In a very basic fashion, I started with that piece of code, which I thought was a start, but obviously doesn’t drive me toward what I’m aiming:
time+((thisComp.layer(“Amplitude audio”).effect(“Les deux couches”)(“Curseur”))(for non-french speakers: “Les deux couches” means “the two layers”, and “curseur” is “slider” meaning I guess the audio level indicator)
The thing is, with this segement, when the audio spectrum lowers in value, in goes back in “time” (or what is added to the time lowers, and thus goes back to the “normal” curse of time).
I think what is need here is something that sums up the audio value throughout the whole, frame after frame, and that keeps adding that to the time. In that sense, it will be like only the speed is chaging.
Can someone help? I’ve seen many of Dan Hebberts around that topic, but by lacking deeper knowledge, couldn’t really handle the solutions provided.
Thanks for your help