
Lingo Dictionary
65
addToWorld
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.
Example
This statement adds the model named gbCyl to the 3D world of the cast member named Scene.
member("Scene").model("gbCyl").addToWorld()
See also
isInWorld()
,
removeFromWorld
addVertex
Syntax
member(
memberRef
).AddVertex(
indexToAddAt
,
pointToAddVertex
\
{,[
controlLocH
,
controlLocV
], [
controlLocH
,
controlLocV
]})
addVertex(member
memberRef
,
indexToAddAt, pointToAddVertex
\
{,[
controlLocH, controlLocV
], [
controlLocH,controlLocV
]})
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.
When using the final two optional parameters, you can specify the location of the control handles
for the vertex. The control handle location is offset relative to the vertex, so if no location is
specified, it will be located at 0 horizontal offset and 0 vertical offset.
Example
This line adds a vertex point in the vector shape Archie between the two existing vertex points, at
the position 25 horizontal and 15 vertical:
member("Archie").addVertex(2, point(25, 15))
See also
vertexList
,
moveVertex()
,
deleteVertex()
,
originMode
after
See
put...after
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...