Split layer
In After effects there is a layer splitting function. Sometimes it is very practical for example for character arms, to make the change of depth and it is necessary to create a new upper layer to place the frames that continue. I have created a command with the history, but, the layer must be selected properly and the pasting must be more concrete. I share the video of what I am really looking for.
an.getDocumentDOM().getTimeline().copyFrames();
an.getDocumentDOM().getTimeline().addNewLayer();
an.getDocumentDOM().getTimeline().convertToBlankKeyframes();
an.getDocumentDOM().getTimeline().pasteFrames();
