FORUMS: list search recent posts

Confusing floating leaf animation

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Scott Norris
Confusing floating leaf animation
on Jun 17, 2015 at 5:16:03 pm

Hi there.

I'm attempting to randomly animate a bunch of sakura petals falling through the sky. I have a general position keyframed across all layers. I also have an expression set up on position as:

yVelocity = random(0,200);
oscFreq = random(.1,.5);
oscDepth = random(35,70);
drift = 25;

value + [oscDepth*Math.sin(oscFreq*Math.PI*2*time) + drift *time,

What I would really like to do is set up an expression for the x rotation which is scaled to the yVelocity value so that it rotates quicker when the petal is travelling at speed. The layers are toggled to 3D, but are designed as 2D objects. Any ideas on how I can achieve this? Many thanks.

Return to posts index

Kalle Kannisto
Re: Confusing floating leaf animation
on Jun 17, 2015 at 7:48:23 pm

Simple solution: Attach the xRotation value to the yPosition: Faster changes in y position makes for faster rotation.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved