Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Darren Ruddock on September 13, 2010 at 1:49 pm

    Hi there,

    New to this forum and it looks really good. Will be glad of any help you wise ones can give.

    I am looking for an expression as I need an oak leaf to drift from the top of the composition and gently stop in the middle so I can bring a logo up next to it.

    Any ideas? I have an expression for this which you can see here. However I can find no way of making the leaf stop gently mid screen.

    Any help would be gratefully received!!

    Thanks

    POSITION:

    yVelocity = 200; //pixels per second
    oscFreq = 1.5; //oscillations per second
    oscDepth = 35; //oscillation depth (pixels)
    drift = 25; // drift (wind?) (pixels per second: - = left, + = right)

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

    Z ROTATION:

    seed_random(index,true);
    random(360);

    Y ROTATION:

    oscFreq = 1.5;
    maxTilt = 15; //degrees

    maxTilt*Math.cos(oscFreq*Math.PI*2*time)

    Brian Yarnell replied 13 years, 2 months ago 2 Members · 1 Reply
  • 1 Reply
  • Brian Yarnell

    September 13, 2010 at 9:36 pm

    All you need to do is pre-comp the “Leaf layer” with all of its animated attributes. Then you will need to time remap it to have it stop where you want it to come to rest.

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