FORUMS: list search recent posts

Is there a expression which can : value + previous value

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Krista van der Wilk
Is there a expression which can : value + previous value
on Feb 3, 2012 at 5:17:08 pm

hello !

i made a NUll object with : Converting audio to keyframes.

With this data i would like to time remap a animation.

When i link time remap to the slider
The animation will go forward and back on the beat.

Converted audio slider: linear(value,0,100,0,10)+time
Animation layer time remap: thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider")

But i want it to go forward at the pace of the music but NOT backward.
So i am looking for a expression which can count the current and the previous value together ..

Hope this makes sense and someone can help me.
Greetings Krista !!

No knowledge is a Statement


Return to posts index

Paul Roper
Re: Is there a expression which can : value + previous value
on Feb 3, 2012 at 6:01:04 pm

Having variables accumulate over time in After Effects is a real pain, but Dan's your man for this kinda thing; this will hopefully help you a lot:

http://www.motionscript.com/design-guide/audio-count.html

- Paul


Return to posts index

Paul Roper
Re: Is there a expression which can : value + previous value
on Feb 3, 2012 at 6:07:23 pm

...If you want to use Dan's expression to control a 2-dimensional array (eg. 2D position), just change the last line ( n ) to this, where the *20 is to amplify the amount of movement - change it to suit your needs.

[n*20,value[1]]


Return to posts index


Immanuel Morales
Re: Is there a expression which can : value + previous value
on Feb 12, 2012 at 4:39:13 pm

try using .valueAtTime([time]-[seconds]) and .frameDuration*[number of frames].

var prev = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider").valueAtTime(time-thisComp.frameDuration*2);


Return to posts index

Krista van der Wilk
Re: Is there a expression which can : value + previous value
on Feb 14, 2012 at 10:12:43 am

i cannot check it right now, but this sounds as a reasonable solution !!

No knowledge is a Statement


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]