9

394 Chapter 12: Animation
Pr ocedur es
Example: To atta ch a cone to a bending cylinder:
1.
In the Perspective viewport, create a cylinder
with a radius of 20,aheightof30,and10 heig ht
segments.
2. In the Perspective viewport, create a cone with a
radius 1 of 15,aradius2of5,andaheightof30.
3. Select the cylinder, apply a Bend modifier, and
set the bend angle to -70 deg rees.
4. Turn on Auto Ke y, move to frame 100, and set
the bend angle to 70 degrees.
The cylinder bends from one direction to the
otherover100frames.
5. Turn off Auto Key.
Exa mple continued: To assi gn the A ttachment
constra int and adj ust the cone:
1.
Select the cone.
2. OntheMotionpanel,opentheAssign
Controller rollout, click the Position track, click
Assign Controller, and choose Att achment.
Theconemovestotheoriginofthescene,and
the Attachment Parameters rollout is displayed.
3. Click the Pick object, and then click the
cylinder.
The name of the cylinder is displayed above the
Pick Object button.
Gotoframe0. ArcRotatethePerspective
viewport so you can see the top surface of the
cylinder.
4. Click Set Position, and click and drag over the
faces on the top sur face of the cylinder.
Theconejumpstothetopofthecylinder. As
you drag the mouse, it jumps to whichever face
you drag over.
5. Release the mouse w hen the cone is on the top
surface of the cylinder.
Ex ample continued: To a dju st the position of the
cone r elative to the f ace:
1.
Drag in the face display window to position
the red x relative to the triangle representing
the face. (Because of the radial arrangement of
cap faces in a cylinder, the upper-left corner
of the displayed triangle is the center of the
cylinder cap. You can turn off Edges Only for
the cylinder to see this.)
2. Adjust the A and B spinners to move the cone
across the surface of the face.
3. Dragthetimeslidertovariousframes.
As the cylinder bends back and forth, the cone
remains attached to its upper surface. Continue
adjusting the A and B spinners and dragging
in the face display window to adjust the cone’s
position.
4. Remember the number in the Face spinner,
and then lower the spinner value until the cone
leav es the cylinder cap and begins jumping
around various areas of the cylinder.
TheFacespinnerspecifieswhichfacethecone
is attached to. As you change its values, the
cone moves to different faces on the cylinder.
5. Re-entertheoriginalvalueintheFacespinner
toreturntheconetothetopofthecylinder.
6. Play the animation.
The cylinder bends back and forth with a cone
attached to its upper cap.
Interfa ce
Parameters for this constraint are available on
the Motion panel after the controller has been
assigned.