ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Getting to grips with velocity.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jamie Bradshaw
Getting to grips with velocity.
on Mar 9, 2018 at 12:52:18 pm

Hi all.

To help explain, I have a property that is being animated with an expression. However, I want to amend the expression so that it can use it's velocity at a certain time to also affect it. As it is an expression that is looking at itself, velocityAtTime won't help me.

As a test I added an expression that created two variables, (A) and (B); (A) being the value at time(t - 0.0001) and (B) the value at time(t). It then works out the velocity with a simple bit of code along these lines: (B - A) / 0.0001

To then test if this was giving me correct results, I then created another layer with an expression to look at the same property that used velocityAtTime(t - 0.0001). Whilst the results are close, they are not the same. Would anybody know why?

Here is a link to a project file to help explain my issue:
12233_velocitytest.aep.zip


Return to posts index

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