Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 458 Bytes

File metadata and controls

35 lines (20 loc) · 458 Bytes

getZDepth()

Availability

Adobe Animate 2019.

Usage

camera.getZDepth(frameIndex)

Parameters

frameIndex:int

Return

int

Description

Return current Z Depth value of camera.

Example

The following example :

var timeline = an.getDocumentDOM().getTimeline();
timeline.camera.cameraEnabled = true;
var depth = timeline.camera.getZDepth(0);

See also

getRotation()