Working with Models and Model Resources
509
Keyframe player events
These events are generated by keyframe animations:
Mesh deform modifier properties
The mesh deform modifier lets you alter an existing model resource’s geometry at runtime. You
can create twist, bend, and ripple effects. Unlike other modifiers, the mesh deform modifier
directly affects model resources as well as the models that use those resources. For example, if
three car models share the same model resource, adding this modifier to one model and then
deforming it will deform all the car models.
The mesh deform modifier is complex and is primarily useful for users with a thorough
understanding of 3D geometry. However, you can take advantage of much of the modifier’s
potential by using only the
vertexList
property.
whichModel
.
keyframePlayer.
rotationReset
Get and set
Normally a model snaps back to its original
rotation after a motion finishes playing. This
property maintains any or all of the rotational
changes after playing is complete.
The values are as follows:
#none
#x
#y
#z
#xy
#xz
#all
#all
whichModel
.
keyframePlayer.
lockTranslation
Get and set
Defines the axis of translation to ignore when
playing back a motion.
The values are as follows:
#none
#x
#y
#z
#xy
#xz
#all
To keep a model locked to a ground plane
with the top pointing along the z-axis, set
lockTranslation to
#z
.
LockTranslation
=
#all
is equivalent to
rootLock
=
TRUE (1)
.
#none
Event name
Description
#animation
Started
This is a system-defined notification event triggered when a motion begins playing.
If looping is on, this event is triggered only by the first playthrough. During a blend
of two animations, this event will be triggered as the blend begins.
#animationEnded
This is a system-defined notification event triggered when a motion ends. If looping
is on, this event is triggered only by the first playthrough. If blending is on, this event
will be generated for the first animation when the blend is complete. There may be
some latency because of the overhead of scheduling all other Director events.
Property
Access
Description
Returns
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...