Lab 2: Animate a Bouncing Ball With Squash and Stretch in Maya

Autodesk MAYA 60 min min read Updated: Nov 18, 2026 Intermediate
Lab 2: Animate a Bouncing Ball With Squash and Stretch in Maya
Intermediate Topic 2 of 3

Goal

Animate a ball that bounces three times, with squash and stretch, and review it with a playblast. Length: 3 seconds at 24 fps.

Part A: In Maya

  1. Set the frame rate to 24 fps and the range to 1 to 72
  2. Create a sphere and a floor plane. Set the sphere's pivot at its bottom
  3. Set stepped tangents as the default and key the main poses: top, contact, top, contact
  4. At each contact frame, scale Y down and X and Z up for squash. Add a stretch just before and after
  5. Switch to spline tangents and fix the curves in the Graph Editor: sharp at contacts, smooth at peaks
  6. Add a little sideways move so the ball travels
  7. Use Playblast to review and adjust timing
Not run in Maya I did not run Maya for this lab. The steps use standard tools. Adjust the numbers to your scene.

Part B: Python Timing Plan

python import math g = 9.81 fps = 24 h = 1.0 keys = [1] frame = 1.0 rise_time = math.sqrt(2 * h / g) * fps frame += rise_time # first contact keys.append(round(frame)) height = h for i in range(3): height *= 0.49 air = 2 * math.sqrt(2 * height / g) * fps # up and down time keys.append(round(frame + air / 2)) # peak frame += air keys.append(round(frame)) # contact print("keyframes at:", keys) print("last key within 72 frames:", keys[-1] <= 72)
Result

keyframes at: [1, 12, 19, 27, 32, 38, 41, 45] | last key within 72 frames: True

The plan puts the first contact near frame 12, then a peak and a contact for each bounce, with the gaps getting shorter. All keys fit inside the 72 frames, which leaves time for the ball to settle.

Improve It

  • Add a small anticipation squash before the first drop
  • Add a rotation to show spin
  • Try a heavier ball with fewer bounces

Conclusion

Good bounce animation comes from correct timing, spacing and squash and stretch. Plan the keys and then polish in the Graph Editor.

Quick Summary: Goal; steps; timing plan; improvements.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators