Animate 2019.
layer.setZDepthAtFrame(FrameNumber,ZVal)
FrameNumber : It is an integer that specifies the frame index starting from 0. ZVal: It is an integer that specifies the ZDepth value ranges between -5000 to 10000.
Nothing
Method; Sets the ZDepth at the specified frame number.
The following example sets the zdepth value at first frame to 100 of the first layer:
fl.getDocumentDOM().getTimeline().layers[0].setZDepthAtFrame(0,100);