Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Rotation/Scale based on direction of X movement

  • Rotation/Scale based on direction of X movement

    Posted by Michael Wilfong on January 23, 2018 at 10:04 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.

    Kevin Camp replied 8 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kevin Camp

    January 23, 2018 at 11:34 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy