381
Description
3D command; returns the model found within the referenced cast member that has the name
specified by
whichModel
, or is found at the index position specified by
index
. If no model exists
for the specified parameter, the command returns
void
. As
model.count
, the command returns
the number of models found within the referenced cast member. This command also allows
access to the specified model’s properties.
Model name comparisons are not case-sensitive. The index position of a particular model may
change when objects at lower index positions are deleted.
If no model is found that uses the specified name or no model is found at the specified index
position then this command returns void.
Examples
This statement stores a reference to the model named Player Avatar in the variable thismodel
:
thismodel = member("3DWorld").model("Player Avatar")
This statement stores a reference to the eighth model of the cast member named 3DWorld in the
variable thismodel.
thismodel = member("3DWorld").model[8]
This statement shows that there are four models in the member of sprite 1.
put sprite(1).member.model.count
-- 4
modelA
Syntax
collisionData.modelA
Description
3D
collisionData
property; indicates one of the models involved in a collision, the other model
being
modelB
.
The
collisionData
object is sent as an argument with the
#collideWith
and
#collideAny
events to the handler specified in the
registerForEvent, registerScript
, and
setCollisionCallback
commands.
The
#collideWith
and
#collideAny
events are sent when a collision occurs between models to
which collision modifiers have been added. The
resolve
property of the models’ modifiers must
be set to
TRUE.
This property can be tested but not set.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...