Connecting Object Movement with Set Driven Key
Maya 2012 Tutorial
How to Use Set Driven Key Feature to Connect Object Movement in Maya
You may have an animation where the movement or rotation of one object is tied to the movement of a second object. Using the Set Driven Key feature you can connect the two objects. Once you animate the objects, you can tweek the first object in the Graph Editor and the other object follows.
In this example we will add a cylinder. As the cylinder rotates, a cube is being lifted in the scene.
Add a polygon cylinder and cube to the scene by choosing Create > Polygon Primitives > Cylinder and Create > Polygon Primitives > Cube.
Use the Move tool (w key) to move the cube in the positive x direction.
Select the cube and choose Animate > Set Driven Key > Set from the Animation menu set.
In the Driven section click Translate Y.
Click the cylinder and press the Load Driver button. Click Rotate Y in the Driver section.
Click the Key button and the two objects are now in sync. Whenever the cylinder's Rotate Y is at zero, the cube's Translate Y value will also be zero because that is their current position.
Select the cylinder and open the Channel Box. Change the Rotate Y value to 720 then press Enter + Esc.
Select the cube and open the Channel Box. Change the Translate Y value to 10 then press Enter + Esc.
Press the Key button. Whenever the cylinder is rotated to 720 degrees, the cube will be lifted to the up position.
With the Rotate tool (e key) selected, click the cylinder. Try rotating the cylinder about the y axis. As you rotate the cylinder, the cube moves up and down.