3D Lingo Dictionary > A-B > addToWorld

 

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