Add keyframe to all path shape
Hi Everyone,
I'm new in scripting but I try to write a simple script for adding a keyframe on every path of shape layer, i succeed with a part of that:
var myLayers = app.project.activeItem.selectedLayers;
var myLayer;
for (var i = 0; i < myLayers.length; i++){
myLayer = myLayers;
if (myLayer instanceof ShapeLayer){
var myContents = myLayer.property("ADBE Root Vectors Group");
for (var j = 1; j <= myContents.numProperties; j++){
myContents.property(j).property("ADBE Vectors Group").property("ADBE Vector Shape - Group").property("ADBE Vector Shape").addKey(1);
}
}
}
but i have difficult if there is a lot of "Vector Shape" on "Shape - Group" it doesn't work.
Do you have an idea how to do it ?
Thanks a lot
