MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 234

Director scripting reference
Table of Contents

Advertisement

Example
This statement adds the model named Tire to the list of children of the model named Car.
-- Lingo syntax
member("3D").model("Car").addChild(member("3D").model("Tire"))
// JavaScript syntax
member("3D").model("Car").addChild(member("3D").model("Tire"));
This statement adds the model named Bird to the list of children of the camera named
MyCamera and uses the
-- Lingo syntax
member("3D").camera("MyCamera").addChild(member("3D").model
("Bird"), #preserveWorld)
// JavaScript syntax
member("3D").camera("MyCamera").addChild(member("3D").model
("Bird"), symbol("preserveWorld"));
See also
parent, addToWorld,
addModifier
Usage
-- Lingo syntax
member(whichCastmember).model(whichModel).addModifier\
(#modifierType)
// JavaScript syntax
member(whichCastmember).model(whichModel).addModifier\
(symbol(modifierType));
Description
3D model command; adds a specified modifier to the model. There is no default value for
this command.
Parameters
symbolModType
follows:
#bonesPlayer
#collision
#inker
#keyframePlayer
(level of detail)
#lod
#meshDeform
#sds
#toon
For more detailed information about each modifier, see the individual modifier entries.
234
Chapter 12: Methods
#preserveWorld
removeFromWorld
Required. A symbol that specifies the modifier to add. Possible modifiers are as
argument to maintain Bird's world position.

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