Animate 2020.
layer.setColorTransformAtFrame(frameIndex,cxformObject)
frameIndex – It is an integer that specifies absolute frame index. cxFormObject - The cxform to be set.
Nothing
Method; Sets the color transform at the frame.
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);