-
Set marker comment using .jsx script file
Gents,
Quick question: I’ve added some markers to my timeline using script. Now I’d like to add some text to the comment field using script as well. Any clues on how this can be done?
Example script:
{
var timeCodes = "0;00;01;00,0;00;02;00,0;00;03;00,0;00;04;00,0;00;05;00";
var splitTC = timeCodes.split(",");
var myComp = app.project.activeItem;
var myLayer = myComp.selectedLayers[0];
for(var i = 0; i < splitTC.length; i++){
t = currentFormatToTime(splitTC[i],myComp.frameRate);
myLayer.property("Marker").addKey(t);
}
}
I’ve tried several options, however without succes. My guess it should be something like the code below, but this yields an error:
myLayer.property("Marker").keyValue(i).comment = "Helllo Marker " + i;
Any help would be much appreciated.
Cheers,
Allard