A model also contains modifiers that control how the model is rendered or how its animation
behaves. Modifiers are attached to a model by using the
has been attached to a model, its properties can be manipulated with script.
The following modifiers are available to a model:
Modifier
Bones player
Collision
Inker
Keyframe player
Level of detail (LOD)
Mesh deform
Subdivision surfaces (SDS) Causes the model to be rendered with additional geometric detail in the
Toon
For more information about the methods, properties, and events available to the modifiers, see
the Using Director topics in the Director Help Panel.
Model Resource
Represents an element of 3D geometry that is used to draw 3D models.
A model makes use of a model resource and occupies a specific position and orientation with a
3D world. A model also defines the appearance of the model resource, such as what textures and
shaders are used.
For more information about the relationship between models and model resources, and about
using models and model resources, see the Using Director topics in the Director Help Panel.
You can create a reference to a model resource by using the
object. The
Member
position in the list of model resources. In Lingo, you use the
from the 3D
Member
method to create a reference.
getPropRef()
The following example creates a reference to the second model resource of the 3D cast member
and assigns it to the variable
wheels
-- Lingo syntax
myModelResource = member("wheels").modelResource[2]
// JavaScript syntax
var myModelResource = member("wheels").getPropRef("modelResource", 2);
Description
Modifies a model's geometry over time.
Allows a model to be notified of and respond to collisions.
Adds silhouette, crease, and boundary edges to an existing model.
Modifies a model's
Provides per-model control over the number of polygons used to
render a model, based on the model's distance from a camera.
The LOD modifier is also available to model resources.
Alters an existing model resource's geometry at runtime.
area of the model that the camera is currently looking at.
Changes a model's rendering to imitate a cartoon drawing style.
property gets the model resource at a specified index
modelResource
object to create a reference. In JavaScript syntax, you must use the
myModelResource
addModifier()
properties over time.
transform
modelResource
modelResource
.
method. After a modifier
property of the 3D
property directly
Model Resource
147
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