FORUMS: list search recent posts

Rotation/Scale based on direction of X movement

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Michael Wilfong
Rotation/Scale based on direction of X movement
on Jan 23, 2018 at 10:04:25 pm

I'm having trouble writing an expression. I'd like the direction of a fish to change based on the movement in X.

Imagine a bouncing fish animation over subtitles to a song. When the fish hits the end of the line it needs to rotate or scale - to go back to the beginning of the next line.


Return to posts index

Kevin Camp
Re: Rotation/Scale based on direction of X movement
on Jan 23, 2018 at 11:34:12 pm

try this on the scale property to flip the layer:
if ( transform.position.velocity[0] < 0 ) [ -value[0], value[1] ] else value

Kevin Camp
Art Director
KCPQ, KZJO & KRCW


Return to posts index

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