
383
modelResource
Syntax
member(
whichCastmember
).modelResource(
whichModelResource
)
member(
whichCastmember
).modelResource[
index
]
member(
whichCastmember
).modelResource.count
member(
whichCastmember
).modelResource(
whichModelResource
).\
propertyName
member(
whichCastmember
).modelResource[
index
].propertyName
Description
3D command; returns the model resource found within the referenced cast member that has the
name specified by
whichModelResource
, or is found at the index position specified by the
index
parameter. If no model resource exists for the specified parameter, the command returns
void
. As
modelResource.count
, the command returns the number of model resources found
within the referenced cast member. This command also allows access to the specified
model resource’s properties.
Model resource name string comparisons are not case-sensitive. The index position of a particular
model resource may change when objects at lower index positions are deleted.
Examples
This statement stores a reference to the model resource named HouseA in the variable
thismodelResource
.
thismodelResource = member("3DWorld").modelResource("HouseA")
This statement stores a reference to the fourteenth model resource of the cast member named
3DWorld in the variable
thismodelResource
.
thismodelResource = member("3DWorld").modelResource[14]
This statement shows that there are ten model resources in the member of sprite 1.
put sprite(1).member.modelResource.count
--10
modelsUnderLoc
Syntax
member(
whichCastmember
).camera(
whichCamera
).modelsUnderLoc\
(
pointWithinSprite
{,
maxNumberOfModels, levelOfDetail
})
Description
3D command; returns a list of models found under the point specified by
pointWithinSprite
within the rect of a sprite using the referenced camera. The location
pointWithinSprite
is
relative to the upper left corner of the sprite, in pixels.
The optional
maxNumberOfModels
parameter allows you to limit the length of the returned list. If
this parameter isn’t specified, the command returns a list containing references for all of the
models found under the specified point.
The optional
levelOfDetail
parameter allows you to specify the level of detail of the
information returned. The
levelOfDetail
parameter can have the following values:
#simple
returns a list containing references to the models found under the point. This is the
default setting.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...