Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects An object swinging back and forth

  • Darby Edelen

    April 4, 2007 at 6:38 pm

    Although it’s hard to know exactly what you’re trying to do without more information, I’m guessing that you want this object to appear as though it is swinging from something. The easiest solution in this case would be to place the objects anchor point where you want it to swing from and then animate the rotation property, which could be done with an expression if you so desire.

  • Bryanisfishing

    April 4, 2007 at 6:49 pm

    well YES that is what I am doing.. but im not getting it to swing back and forth properly.. and by properly, i mean.. realisticly.. is there a better way to do this.. etc.. with an expression.. if so.. is there an expression for rotation with will randomly go from one pt to another..

  • Steve Roberts

    April 4, 2007 at 6:55 pm

    Check the AE Expressions COW forum.

  • Mike Clasby

    April 4, 2007 at 8:32 pm

    Here’s a Pendulum expression by Dan, from here:

    https://www.motionscript.com/expressions-lab-ae65/pendulum.html

    veloc = 7;
    amplitude = 80;
    decay = .7;

    amplitude*Math.sin(veloc*time)/Math.exp(decay*time)

    This is a very natural swinging. If you change the decay to 0, the object will keep swinging (no friction, no decay). Changing the Amplitude changes how far it swings, change the velocity changes how fast it swings, it’s very flexible.

    I don’t really know what you want when you said, “.. is there an expression for rotation with will randomly go from one pt to another.. “.

  • Steve Brigantino

    January 2, 2012 at 5:05 pm

    Thanks for the script.

    How would I start the swing from a certain angle; say 90 on the x?

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