Project File

How To Create a Bouncy Ball in After Effects – Part 4

In this part 4 tutorial, we’re going to set up a stretchy control. So it’s going to be something like this, we’re going to have a slider that controls like a stretchy control of this ball. And we can, you know, link this up with the animation is gonna look really nice. But so far, in the previous video, we created these controls to where when you move the ball up, the shadow scales and blurs, it also moves with the ball. So all of that is nice. We break that up in the previous video, so if you haven’t seen it, definitely check it out. But in this video, we’re going to do the stretchy control. So let’s do that. We’re going to go to this controls layer, we’re going to select it, we’re going to go to Effect Controls panel. And we’re going to lock this in so we can see our controls in here. Next, we’re going to add a slider control. So right click here, go to expression controls and click on the slider control. So again, by itself, it’s just a slider, it doesn’t do anything unless you attach something to it. So we’re going to select this and we’re going to rename this to stretchy. So when we move on this it’s going to stretch our ball, but we got to set this up. So to do that, we’re going to go to the scale property. of this bowl, we’re gonna select it hit asked to reveal the scale property, we’re going to add an expression by holding Alt, click on the stopwatch. And in here, we’re going to separate both of these into separate lines. We’ve done that in the previous video. So I’m not going to go as detailed this time. If you want to see how I did it, be sure to check out the previous video. So we’re going to save this we’re going to say x, you’re going to equal to this value right here. So we’re going to say value, which is this whole number, but we want the first one, so we’re going to say index zero because it starts with zero. So 01, we want the value zero, okay, so that’s what x is going to be, then y you’re going to be value, and then index one, which is the second value that right there. And then we have to marry them together because we have to speak the same languages here. So those are two values. The last statement has to be two values as well. So we’re going to do square brackets, we’re going to say x and y. In other words, x is going to be applied to this, why you’re going to be applied to that. So when I click away, nothing happens because it really didn’t do anything other than just, we split both of these into separate lines so we can tackle them individually. That’s all we did here. So now we’re going to create a variable right above here called stretchy. Just a made up English. It can be anything, but I’m calling it stretchy. And we’re going to pick whip to this stretchy value. Again, remember, we want to be more specific, we want the actual value because when you say stretchy, his slider is going to go to the slider, but slider has a name and other properties, but we want the value property. Alright, so now we have a stretchy so when I refer to this variable stretchy, I’m actually referring to this knob right here. So now when I pull on this, I want to add to the like the height, like the size, the height size of this ball. So let me zero this out. So I’m going to go over here, value, right, we’re going to add to this y right right here, we’re going to add to this but without touching the x, okay, so we’re gonna say at the end of it, we’re gonna say plus stretchy So this one right here. So watch what happens. So when I pull in this, it scales up. Now when it scales up, I also want for the X to size down to kind of go in. And for that, we’re just going to copy this stretchy, we’re going to do the opposite, right, we’re going to copy this, and we’re going to say instead of plus, we’re going to say minus stretching. When you do that, it does the opposite. It’s that simple. So now, when I scale on it, you know slide on it, you can see it goes up or down. So it gives us that stretching. That’s all we’re going to do. Now you can alter the numbers and you can divided and multiplied whatever, but that’s what I’m going to keep it at. Now. That’s all we’re gonna do for the ball. But we have to do the same thing for the shadow and I’m going to copy this variable right here. I’m going to reuse it somewhere else. So now we’re going to go to the ball shadow so we’re going to select this hit asked to reveal the scale property. Now in the previous video, we already rig stuff up. So we’re just going to add our stretchy variable right here. We’re going to do the same thing we did previously. So we’re going to select the stretchy, copy it. So in here we’re going to subtract stretching. So let’s see what happens. So when we move on this, it’s subtracting from the X. Okay, but on here, we want to add, so we’re going to say plus stretching. But

remember, we want to maintain the same,

like ratio size ratio, so we want to say divided by 10. We talked about in the previous video, so we want to maintain the same so whenever we apply to this, that y is actually the x divided by 10. So we have to maintain that ratio. It’s very important. So now when I click away, and if I move on this, you can see it’s working. So let’s see if the zero it does work, especially when you move it up. And you adjust it you can see it does does work. So that is really it. As far as stretch goes. That’s all we’re going to do. In the next video, we’re going to talk about animation. So I’ll see you there.

Transcribed by

May 22, 2020

We're trusted by these great organizations.


Kingsport Times News

Join us and 89,000+ Artists

Subscribe to gain access to exclusive freebies

No spam, promise!

© 2021 Ukramedia, LLC