User Guide
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 Bird’s 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.