Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Confusing floating leaf animation

  • Confusing floating leaf animation

    Posted by Scott Norris on June 17, 2015 at 5:16 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:

    seedRandom(6,true);
    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,
    yVelocity*time,0]

    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.

    Kalleheikki Kannisto replied 11 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Kalleheikki Kannisto

    June 17, 2015 at 7:48 pm

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

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