3D Lingo Dictionary > E-K > isInWorld() |
![]() ![]() ![]() |
isInWorld()
Syntax
member(whichCastmember
).model(whichModel
).isInWorld() member(whichCastmember
).camera(whichCamera
).isInWorld() member(whichCastmember
).light(whichLight
).isInWorld() member(whichCastmember
).group(whichGroup
).isInWorld()
Description
3D command; returns a value of TRUE
if the parent hierarchy of the model, camera, light, or group terminates in the world. If the value of isInWorld
is TRUE
, the model, camera, light, or group functions in the 3D world of the cast member.
Models, cameras, lights, and groups can be stored in a 3D cast member but not used in the 3D world of the cast member. Use the addToWorld
and removeFromWorld
commands to add and remove models, cameras, lights, and groups from the 3D world of the cast member.
Example
This statement shows that the model named Teapot exists in the 3D world of the cast member named TableScene.
put member("TableScene").model("Teapot").isInWorld() -- 1
See also
addToWorld
, removeFromWorld
, child
![]() ![]() ![]() |