3D Lingo Dictionary > C-D > deleteCamera |
![]() ![]() ![]() |
deleteCamera
Syntax
member(whichCastmember
).deleteCamera(cameraName
) member(whichCastmember
).deleteCamera(index
) sprite(whichSprite
).deleteCamera(cameraOr
Index
)
Description
3D command; in a cast member, this command removes the camera from the cast member and the 3D world. Children of the camera are removed from the 3D world but not deleted.
It is not possible to delete the default camera of the cast member.
In a sprite, this command removes the camera from the sprite's list of cameras. The camera is not deleted from the cast member.
Examples
This statement deletes two cameras from the cast member named Room: first the camera named Camera06, and then camera 1.
member("Room").deleteCamera("Camera06")
member("Room").deleteCamera(1)
This statement removes two cameras from the list of cameras for sprite 5: first the second camera in the list, then the camera named Camera06
sprite(5).deleteCamera(2)
sprite(5).deleteCamera(member("Room").camera("Camera06"))
See also
newCamera
, addCamera
, cameraCount()
![]() ![]() ![]() |