locV
837
Example
This statement puts sprite 15 at the same horizontal location as the mouse click:
-- Lingo syntax
sprite(15).locH = _mouse.mouseH
// JavaScript syntax
sprite(15).locH = _mouse.mouseH;
See also
bottom
,
height
,
left
,
locV
,
point()
,
right
,
Sprite
,
top
,
updateStage()
lockTranslation
Usage
member(
whichCastmember
).model(
whichModel
).bonesPlayer.\
lockTranslation
member(
whichCastmember
).model(
whichModel
).keyframePlayer.\
lockTranslation
Description
3D
#bonesPlayer
and
#keyframePlayer
modifier property; prevents displacement from the
specified plane(s) except by the absolute translation of the motion data. Any additional
translation introduced either manually or through cumulative error is removed. The possible
values of
#none
,
#x
,
#y
,
#z
,
#xy
,
#yz
,
#xz
, and
#all
control which of the three translational
components are controlled for each frame. When a lock on an axis is turned on, the current
displacement along that axis is stored and used thereafter as the fixed displacement to which the
animation is relative. This displacement can be reset by deactivating that axis lock, moving the
object, and reactivating that axis lock.
In other words, it defines the axis of translation to ignore when playing back a motion. To keep a
model locked to a ground plane with the top pointing along the
z
-axis, set
lockTranslation
to
#z
. The default value for this property is
#none
.
Example
This statement sets the
lockTranslation
property of the model named Walker to #z.
member("ParkScene").model("Walker").bonesPlayer.\
lockTranslation = #z
See also
immovable
locV
Usage
-- Lingo syntax
spriteObjRef
.locV
// JavaScript syntax
spriteObjRef
.locV;
Description
Sprite property; indicates the vertical position of a sprite’s registration point. Read/write.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...