EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 237

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...
addVertex() 237
addToWorld
Usage
-- Lingo syntax
member(whichCastmember).model(whichModel).addToWorld()
member(whichCastmember).group(whichGroup).addToWorld()
member(whichCastmember).camera(whichCamera).addToWorld()
member(whichCastmember).light(whichLight).addToWorld()
// JavaScript syntax
member(whichCastmember).model(whichModel).addToWorld()
member(whichCastmember).group(whichGroup).addToWorld()
member(whichCastmember).camera(whichCamera).addToWorld()
memberwhichCastmember).light(whichLight).addToWorld()
Description
3D command; inserts the model, group, camera, or light into the 3D world of the cast member as
a child of the group named World.
When a model, group, camera, or light is created or cloned, it is automatically added to the
world. Use the
removeFromWorld command to take a model, group, camera, or light out of the
3D world without deleting it. Use the
isInWorld() command to test whether a model, group,
camera, or light has been added or removed from the world.
Parameters
None.
Example
This statement adds the model named gbCyl to the 3D world of the cast member named Scene.
-- Lingo syntax
member("Scene").model("gbCyl").addToWorld()
// JavaScript syntax
member("Scene").model("gbCyl").addToWorld();
See also
isInWorld(), removeFromWorld
addVertex()
Usage
-- Lingo syntax
memberObjRef.addVertex(indexToAddAt, pointToAddVertex {,[ horizControlLocV, \
vertControlLocV ], [ horizControlLocH, vertControlLocV ]})
// JavaScript syntax
memberObjRef.addVertex(indexToAddAt, pointToAddVertex {,[ horizControlLocV,
vertControlLocV ], [ horizControlLocH, vertControlLocV ]});
Description
Vector shape command; adds a new vertex to a vector shape cast member in the position
specified.
The horizontal and vertical positions are relative to the origin of the vertex shape cast member.

Related product manuals