Hi Dan, i am new in expression and it is the first time that i write and apply a script. i found your script for move markersLayer to markersComp. I need to change the target: create a compMarker for each inPoint layer selected that i have in the comp. I tryed to change your script but the new one works only for the first selected layer.
Can i ask you to help me understanding where is the error and how can i fix it?Thank you very much.
var theComp = app.project.activeItem;
var theLayer = theComp.selectedLayers[0];
var theTimes = [];
for (var i = 1; i <= theComp.numLayers; i++){
theTimes.push(theLayer.inPoint);
}
for (var i = 1; i <= theComp.numLayers; i++){
theComp.layer(i).selected = false;
}
for (var i = 0; i < theTimes.length; i++){
theComp.time = theTimes[i];
app.executeCommand(app.findMenuCommandId(“Add Marker”));
}