Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 542 Bytes

File metadata and controls

46 lines (27 loc) · 542 Bytes

Camera.resetPosition()

Availability

Adobe Animate 2019.

Usage

Camera.resetPosition(frameIndex)

Parameters

frameIndex

Type

number

Description

integer

Returns

Nothing.

Type

void

Description

Reset camera position to the original position i.e (0, 0, 0).

Example

The following example resets camera position to the original position i.e (0, 0, 0):

var timeline = an.getDocumentDOM().getTimeline();
timeline.camera.resetPosition(0);