Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 678 Bytes

File metadata and controls

32 lines (18 loc) · 678 Bytes

layer.setColorTransformAtFrame()

Availability

Animate 2020.

Usage

layer.setColorTransformAtFrame(frameIndex,cxformObject)

Parameters

frameIndex – It is an integer that specifies absolute frame index. cxFormObject - The cxform to be set.

Returns

Nothing

Description

Method; Sets the color transform at the frame.

Example

The following example copies the color transform of the first frame and sets it to the tenth frame:

var myCxform = an. getDocumentDOM(). getTimeline(). layers[0].getColorTransformAtFrame (0);

an.getDocumentDOM().getTimeline().layers[0]. setColorTransformAtFrame (9, myCxform);