Question
Can scripts move keyframes on the timeline?
Hello,
I managed to google and use AI to write this script - it crops the selected layer to the layer above. Works well!
But I'd also like it to move the last two keyframes on the position property to the layers new outpoint.
I'm not sure if scripts are able to move keyframes like that? I haven't been able to find anything that works when adding it to this script.
var selectedLayer = app.project.activeItem.selectedLayers[0];
var layerAbove = selectedLayer.index - 1;
var layerAboveDuration = app.project.activeItem.layer(layerAbove).outPoint;
selectedLayer.outPoint = layerAboveDuration;
Any suggestions would be amazing.
Thank you
