so… here came ChatGPT and offered this script:
var comp = app.project.activeItem; // Get active composition
if(comp) {
if(comp.markerProperty.numKeys > 0) {
var markers = comp.markerProperty; // Get markers
var frameDuration = comp.frameDuration; // Get composition frame duration
for (var i = 1; i <= markers.numKeys; i++) {
var markerTime = markers.keyTime(i); // Get marker time
var closestFrame = Math.round(markerTime / frameDuration); // Get closest frame
markers.setCommentAtTime(markerTime, closestFrame);
}
} else {
alert(“The active composition does not have any markers.”);
}
} else {
alert(“No active composition.”);
}
after effects run in to errors there, but maybe one of you wizards can take it from there 🙂