MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 403

Director scripting reference
Table of Contents

Advertisement

Parameters
Required. A vector from which a ray is drawn and under which a list of models
locationVector
is found.
directionVector
Optional. A list that specifies the maximum number of models to return, the level
optionsList
of information detail, a list of models among which to cast, and the maximum distance to draw
the ray. All of these properties are optional.
maxNumberOfModels
If omitted, the command returns a list containing references for all of the models found under the
specified ray.
Optional. A symbol that specifies the level of detail of the information returned.
levelOfDetail
Valid values include the following:
returns a list containing references to the models found under the point. This is the
#simple
default setting.
returns a list of property lists, each representing an intersected model. Each
#detailed
property list will have the following properties:
is a reference to the intersected model object.
#model
is the distance from the world position specified by
#distance
point of intersection with the model.
#isectPosition
intersection.
#isectNormal
is the meshID of the intersected mesh which can be used to index into the mesh
#meshID
list of the
meshDeform
is the face ID of the intersected face which can be used to index into the face list of
#faceID
the
meshDeform
is a 3-element list of vectors that represent the world space positions of the
#vertices
vertices of the intersected face.
is a property list with properties
#uvCoord
coordinates of the face.
Optional. A list of model references that are included if they are found under the
modelList
specified ray. Model references not included in this list are ignored, even if they are under the
specified ray. Use the model references, not the string names of the models. Specify each model
you want to include. Adding a parent model reference does not automatically include its child
model references.
Optional. The maximum distance from the world position specified by
maxDistance
. If a model's bounding sphere is within the maximum distance specified, that
locationVector
model is included. If the bounding sphere is in range, then it may contain polygons in range and
thus might be intersected.
Example
This statement creates a list of ten models:
tModelList = [member("3D").model("foo"),member("3D").model[10]]
Required. A vector that specifies the direction the ray is pointing.
Optional. An integer that specifies the maximum length of the returned list.
is a vector representing the world space position of the point of
is the world space normal vector to the mesh at the point of intersection.
modifier.
modifier.
locationVector
and
that represent the u and v barycentric
#u
#v
to the
modelsUnderRay
403

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents