Module 4 Animation Using Set Driven Keys
Module 4 Animation Using Set Driven Keys
Module 4
Animation using Set
Driven Key
With keyframe animation, you key an attribute value to a time
in the Time Slider. You repeat this process with different
values at different times to animate the object. When you
need to animate multiple objects or attributes that interrelate,
setting keyframes can quickly become a complex task.Non-
Uniform refers to the parameterization of the curve. Non-
Uniform curves allow, among other things, the presence of
multi-knots, which are needed to represent Bezier curves.
Setting driven keys is a technique for driving the animation
of one object or attribute, using another attribute. With
driven keys, you create a dependent link between a pair of
attributes. A change in the driver attribute then alters the
value of the driven attribute. Once you establish this
relationship between attributes, you don't need to animate
the driven attribute separately; it occurs automatically as
you animate the driver object.
This makes setting up some types of animation much more
efficient. For example, you can use driven keys to make a
door open when a character walks in front of it.
It's important to understand that driven keys don't actually
animate the driven object, they only associate the driven
attribute with its driver. The driven object reacts to changes
as you manipulate its driver, but nothing happens if you
playback the scene until you set keyframes on the driver
object. Because driven keys do not link attributes to time,
the Time Slider is not involved in a driven key relationship
and displays no markers for driven keys.
This example illustrates how to use Set Driven Key to link
the attributes of a door object to the attributes of a ball, so
that the movement of the ball drives the movement of the
door.
You can easily set up a similar scene to try the example
yourself:
Create a polygonal cube or plane, and name it Door.(Scale
and position it roughly so that it lies along the X-axis.)
Create a small polygonal sphere and name it Ball.(Scale and
position it just in front of the door, roughly at 0, 1, 10.
To link the door’s movement to the ball’s movement
Select the door, then select Key > Set Driven Key >
Set.The Set Driven Key window appears with the door in
the Driven list.
Select the ball in the scene view, then click Load Driver.The
ball appears in the Driver list.
Select Translate Y in the Driven list (the attribute to be driven
by the ball’s movement), and select Translate Z in
the Driver list (the attribute that will drive the door), then
click Key.
This sets a driven key relationship that
links the current Translate Z value of
the ball to the current Translate Y value
of the door. Whenever the
ball’s Translate Z is at this position, the
door’s Translate Y will be at its current
position.
Use the Move Tool (hotkey W) to
position the ball directly on the door,
then move the door to a position above
the ball.
In the Set Driven Key window,
click Key.
This sets another driven key that links
the current Translate Z value of the ball
to the Translate Y value of the door.
Move the ball past door and then lower
the door to its previous position.
In the Set Driven Key window, click Key.
You’ve set three driven keys that link the attribute values at different
positions. If you drag the ball toward the door from either side, the door
rises smoothly. You can also flip through your driven keys by
selecting Key > Go To Next or Key > Go To Previous in the Set Driven
Key window.
Notice that playing back the animation from the Time Slider doesn’t
move the ball or the door. This is because driven keys link one attribute
to another, they do not link attributes to times in the Time Slider.
However, if you go on to set keyframes and animate the position of the
ball, the door will still move automatically, based on the driven key
relationship.
https://knowledge.autodesk.com/support/maya/learn-
explore/caas/CloudHelp/cloudhelp/2019/ENU/Maya-
Animation/files/GUID-2C048635-CDD2-4CF7-820D-
A032204C8CE8-htm.html