Skip to main content
October 24, 2019
Answered

How to add markers in AfterEffects with CEP/ExtendScript?

  • October 24, 2019
  • 1 reply
  • 408 views

Hello. Does anybody know how to add comp markers (at a specific time) to a composition in After Effect with ExtendScript?

    This topic has been closed for replies.
    Correct answer

    OK, I found this out:

    // http://docs.aenhancers.com/items/compitem/
    var compMarker = new MarkerValue("My Marker 1");
    compMarker.duration = 1; compMarker.url = "http://www.adobe.com/aftereffects";
    thisComp.markerProperty.setValueAtTime(2, compMarker);
    

    1 reply

    Correct answer
    October 24, 2019

    OK, I found this out:

    // http://docs.aenhancers.com/items/compitem/
    var compMarker = new MarkerValue("My Marker 1");
    compMarker.duration = 1; compMarker.url = "http://www.adobe.com/aftereffects";
    thisComp.markerProperty.setValueAtTime(2, compMarker);