Camera Follow Object
Maya 2012 Tutorial
How to Make Camera Follow Moving Maya Object
Having your camera follow an object as it travels through the scene is quite simple. Once you add a Camera and Aim to your scene, make the Aim object a child of your moving object.
Add a polygon cube to your scene by choosing Create > Polygon Primitives > Cube.
Select the cube and click frame one of the Timeline. Press the s key to set a keyframe.
Click frame 24 of the Timeline and move the cube 12 units in the x direction with the Channel Box. Press Enter + Esc + s to set another keyframe.
Reset the Timeline back to frame one and add a camera to your scene by choosing Create > Cameras > Camera and Aim.
Using the Move tool (w key) drag the camera backwards and reposition the Camera Aim object to the center of the cube.
Open the Outliner (Window > Outliner) and click the plus sign next to the camera group.
Middle mouse drag the aim object to the cube object. The aim is now a child of the cube.
In the perspective view select your new camera by choosing Panels > Perspective > Your New Camera Name.
Press the Controller Play button to view your animation.
Aim Option #2
Another way to accomplish the same thing is to add a standard camera and use the Aim feature (Animate > Constrain > Aim) in the Animation menu set.
1) Add animated object
2) Add camera (no aim)
3) Select the object, then shift select camera
4) Choose Constrain > Aim (Animation menu set)
5) Select Maintain Offset in the Aim options