ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Smoothing camera movements following a null

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Nicolas Guionnet
Smoothing camera movements following a null
on Mar 14, 2019 at 12:11:32 pm

Hi,

I have a bunch of 2D objets on a layer. I want to follow them with a camera. So I create a NULL that will be at the center of the group of objects.
The point of interest of my camera is set to the NULL position.
Unfortunately, due to the type of calculation involved to position the NULL, its movements are not quite smooth.

Do you know a way to filtrate, I mean to smooth its movements and affect the result to an intermediary NULL2 that would be my new point of interest ?

In a more traditional programming environment, I would have applied a basic filtering algorithm ... but to do this in AE, I would need to keep variables from one frame to the next ...

Is there a way to do this in AE ? (I am sure there is ... ☺ )

Wo Wo ! Wait ! As I am writing these lines ... I remember the .valueAtTime(t) function.
It would let me access the former position of NUUL2 and any position of NULL to compute the new NULL2 position ...
Although I don't know if I can access NULL2.transform.position.valueAtTime( t-1 ) in the expression calculating NULL.transform.position at time t ...

Any idea, advice ?
Thanks !


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]