Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Markofcain on January 24, 2006 at 6:18 pm

    I am trying to create a swing effect in After Effects.

    The subject is a hand drawn logo with a tire swing and I have successfully placed the tire and rope on its own layer above the tree and background layer.

    I have used keyframes to control the rotation of this layer to swing back and forth over a 3 second duration. I looked long and hard for some type of a present animation similar to a bounce effect — but no luck.

    Is there a tutorial or tip that might help be with this swing effect?

    Thanks

    Jason Brown replied 14 years, 2 months ago 5 Members · 7 Replies
  • 7 Replies
  • Serge Hamad

    January 24, 2006 at 6:37 pm

    Hi,

    Try this from the genious Dan:
    https://www.motionscript.com/expressions-lab-ae65/pendulum.html

    Salut.
    Serge

  • Vince Becquiot

    January 24, 2006 at 8:35 pm

    Fantastic tip.

    Thank you serge.

    Cheers,

    Vince

  • Markofcain

    January 25, 2006 at 4:31 am

    Many thanks for your help. This is exactly what I needed.

  • Jason Brown

    March 16, 2012 at 3:40 am

    It wasn’t working for me, but then I FINALLY figured out that it’s relevant to the location in the composition. This expression only works if your layer starts at the beginning of the composition

    How do you do this if you need to do a pendelum swing a couple seconds into the layer?

  • Dan Ebberts

    March 16, 2012 at 3:52 am

    One way:


    tStart = 2; // start at 2 seconds

    t = time - tStart;
    if (t > 0){
    veloc = 7;
    amplitude = 80;
    decay = .7;
    value + amplitude*Math.sin(veloc*t)/Math.exp(decay*t)
    }else{
    value
    }

    Dan

  • Jason Brown

    March 16, 2012 at 4:33 am

    Dan you are an absolutely amazing resource…thank you so much!

    I ended up just precomping it and it moved on…but this is helpful.

    Thanks again! 🙂

  • Jason Brown

    March 17, 2012 at 4:21 am

    [Dan Ebberts] “tStart = 2; // start at 2 seconds”

    How do I apply frames into this math?

    Also…I’m trying to flip the layers from basically 90 degrees to the camera…I’m doing this by manipulating transparency and layer start time to get it to look right…is there a better way, it doesn’t need to be exactly 90…I’m going to get into it with a quick dissolve.

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