EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 234

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
234 Chapter 12: Methods
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
#preserveWorld argument to maintain Birds world position.
-- 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, removeFromWorld
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 Required. A symbol that specifies the modifier to add. Possible modifiers are as
follows:
#bonesPlayer
#collision
#inker
#keyframePlayer
#lod (level of detail)
#meshDeform
#sds
#toon
For more detailed information about each modifier, see the individual modifier entries.

Related product manuals