Property
emitter.grav
ity
emitter.wind
The extruder model resource
You can create extruder model resources only by using an existing text cast member. In many
cases, you may choose to use the 3D text capabilities of the Property inspector instead.
Creating an extruder model resource is simple. If member 1 is a text cast member and member 2
is a 3D cast member, use the following Lingo:
member(1).extrude3d(member(2))
This generates a model resource in member 2 that is an extrusion of the 2D text in member 1.
Cast member commands
If the models and model resources you need aren't contained in a particular cast member, the
following commands allow you to create models and model resources using other 3D cast
members at runtime.
Command
loadFile
(
fileName,
Overwrite,
GenerateUnique
)
Names
cloneModelFrom
Castmember
(
name, model,
)
castmember
Access
Description
Get and set
Vector representing simulated gravity. The
vector's length indicates its strength.
Get and set
A vector representing simulated wind pushing
particles in a given direction. The vector's length
indicates its strength.
Description
This command loads a W3D format file from
adds all models as children of the world, and updates all
palettes.
You can call this function only if the cast member's state
-1
property is either
a previous attempt to load the file, or
loading is complete. If an attempt is made to call
loadFile
while the cast member is streaming media in, a
Lingo error is generated.
Overwrite
is an optional variable that can be
FALSE (0)
or
:
TRUE (1)
means the old world is replaced by the contents
of the file.
FALSE (0)
means the new file is merged into the existing
world.
GenerateUniqueNames
Overwrite
meaning unless
Overwrite
FALSE (0)
If
is
GenerateUniqueNames
elements sharing the same name as existing elements are
assigned a new, algorithmically determined unique name.
GenerateUniqueNames
If
elements sharing the same name as new elements being
read into the file are replaced by the new elements.
Performs a deep clone of a model from one cast member
and puts it into another cast member.
The model, its resources, its children, and its children's
resources all are put into the new cast member.
fileName
, meaning that an error occurred during
4
, meaning that media
is a variable that has no
FALSE (0)
is
.
, then if
TRUE (1)
is
, all new
FALSE (0)
is
, all existing
Working with Models and Model Resources 481
Value Range
Any vector.
Any vector.
Returns
Nothing if the operation
,
is successful, or a Lingo
error if the operation fails
TRUE (1)
A model object
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?