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()
member
whichCastmember
).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.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...