Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Controlling a bounce using a slider?

  • Controlling a bounce using a slider?

    Posted by Zac Waxman on January 26, 2013 at 3:59 pm

    Hey guys,

    Hope someone can help me out with this! I am creating a 2d truck driving, I want it to bounce a constant beat using an expression with which I can then control with a slider. I have the truck in two parts – the four wheels on one layer, and the cab and trailer on another. I want the cab and trailer to bounce at a constant pace which can get faster as I increase the slider control.

    I’m thinking it would be the wiggle expression but can’t seem to work out how to get it to wiggle along one axis only, in a simple up and down move. If there is any other suggestions or better expressions then I’d be very grateful to know.

    Thanks

    Zac Waxman

    Junior Motion Graphics Designer

    Zac Waxman replied 13 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 26, 2013 at 8:20 pm

    Wiggle in the y direction only is pretty easy–like this:

    w = wiggle(1,100);
    [value[0],w[1]];

    Speeding the wiggle up is a different story. You might want to check this out if you decide to go with wiggle:

    https://www.motionscript.com/articles/speed-control.html#wiggle

    Dan

  • Zac Waxman

    January 27, 2013 at 11:12 am

    Hi Dan,

    Thanks for getting back, I knew there was an easy way to do it I was just having a block! I’m not sure wiggle is the best expression to use as I really want a regular bounce with regular rises and falls which (if I can) control the power of that bounce with a slider. Ill take a look at your site though and see if I can figure something out.
    I have a semi solution which kind of works – the truck is in a precomp and I have just key framed the bounce and looped it, and set the key frames at the place where the truck needs to start bouncing in the master comp. the bounce is only to represent that the truck is driving, and I’d like the slider to control the bounce to show acceleration and deceleration of the truck.

    Thanks for your response and help though and ill look into the control thing!

    Zac Waxman

    Junior Motion Graphics Designer

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