Director Help

cameraCount()

Usage

-- Lingo syntax
sprite(whichSprite).cameraCount()

// JavaScript syntax
sprite(whichSprite).cameraCount();

Description

3D command; returns the number items in the list of cameras of the sprite.

Parameters

None.

Example

This statement shows that sprite 5 contains three cameras.

-- Lingo syntax
put sprite(5).cameraCount()
-- 3

// JavaScript syntax
put(sprite(5).cameraCount());
// 3

See also

addCamera, deleteCamera