Activity › Forums › Adobe After Effects › An object swinging back and forth
-
An object swinging back and forth
Posted by Bryanisfishing on April 4, 2007 at 6:09 pmIs there an expression besides key framing and object that sings back and forth..
i’d like the object to swing back and forth, prett smooth.Steve Brigantino replied 14 years, 4 months ago 5 Members · 5 Replies -
5 Replies
-
Darby Edelen
April 4, 2007 at 6:38 pmAlthough 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 pmwell 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..
-
Mike Clasby
April 4, 2007 at 8:32 pmHere’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 pmThanks for the script.
How would I start the swing from a certain angle; say 90 on the x?
Reply to this Discussion! Login or Sign Up