FORUMS: list search recent posts

How to change layer rotation accordingly to his direction

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Alex Carou
How to change layer rotation accordingly to his direction
on Aug 18, 2016 at 7:43:18 pm

Hi creativecow community,

I can't solve this by myselfe and I would like to ask some help for this problem.

Imagine a tall tree wich its enchor point is at its foot. I want to move it from left to right and rotate it by his speed.
The greater its speed grow, the greater it will rotate. So I put this expression in ...

Rotation : {-position.speed/9 -15};

But however the direction it takes, It will rotates only in one direction. I search everywhere to find an expression that will "reverse" the rotation by his direction movement.

I try to learn to build my own expressions, in little bits.

Thank you in advance to help me out.


Return to posts index

Dan Ebberts
Re: How to change layer rotation accordingly to his direction
on Aug 19, 2016 at 12:09:55 am

Try replacing:

position.speed

with:

position.velocity[0]


Dan



Return to posts index

Alex Carou
Re: How to change layer rotation accordingly to his direction
on Aug 19, 2016 at 1:21:19 am

It kind work when I drag it in X positions but when I preview, It stuck in an same angle until it jump to the next keyframe.


Return to posts index


Dan Ebberts
Re: How to change layer rotation accordingly to his direction
on Aug 19, 2016 at 2:28:03 am

Are you using linear keyframes? If so, the speed won't change--try changing the keyframes to Easy Ease.

Dan



Return to posts index

Alex Carou
Re: How to change layer rotation accordingly to his direction
on Aug 19, 2016 at 2:51:03 pm

It work! Now I need to apply a "spring" effect on the rotation. So, when the "speed.position == 0 ", it should decay his amplitude from the rotation value one frame before it stop.


Return to posts index

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