Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 3.89 KB

File metadata and controls

63 lines (41 loc) · 3.89 KB

Camera Object summary

Availability

Adobe Animate 2019

Description

This javascript object allows user to access and change properties of camera at any frame in timeline.

Animators can use the following features that are integral to any motion film.

  1. Panning with the subject of the frame.

  2. Zooming in the object of interest for dramatic effect

  3. Zooming out of a frame to remind the viewer of a larger picture

  4. Modifying the focal point to shift the attention of the viewer from one subject to another

  5. Rotating the camera

  6. Using color tint or filters to apply color effects on a scene

Method summary

The following methods can be used with the Camera object:

Method Description
getZDepth() Return current Z Depth value of camera.
getZoom() Return the current zoom value of camera. Default is 100%.
getRotation() Return current angle of camera.
getPosition() Return object with x,y, and z properties that specify current location of camera.
getTint() Return object with two properties: ‘percent’ & ‘color’.
getColorFilter() Get camera color filter.
setZDepth() Set camera's Z Depth value.
setZoom() Zoom camera to absolute value given by input parameter in percentage.
setRotation() Rotate camera by absolute angle given as input parameters.
setTint() Set camera tint using tint color(RGB) & tint percent (percentage of tint).
setColorFilter() Set camera color filter using decomposed values of (Brightness,Contrast,saturation,hue).
resetZoom() Reset camera zoom to it's default zoom value i.e 100%.
resetRotation() Reset camera angle to zero.
resetPosition() Reset camera position to the original position i.e (0,0,0).
resetTint() Remove camera tint.
resetColorFilter() Remove color filter.
reset() Reset all camera properties to default.

Property summary

The following properties can be used with the Camera object:

Property Description
camera.cameraEnabled Enable/Disable camera
camera.colorFilterEnabled Enable/Disable camera's color Filter
camera.tintEnabled Enable/Disable tint