Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get Markers info via scripting

  • Get Markers info via scripting

    Posted by Rainier Raydán on April 26, 2019 at 9:10 pm

    Hi guys!

    I have a layer with several markers. Is there any way to get those markers time and comment information?
    I would like to get the time of every marker so I can use it to split the layer (I have a lot of those footage with markers…)

    Thanks!

    Rainier Raydán replied 7 years ago 3 Members · 4 Replies
  • 4 Replies
  • Tomas Bumbulevičius

    April 27, 2019 at 6:40 pm

    Hello Rainier, assuming you have scripting experience:
    1. Where and in what form you want markers data to be retrieved?
    2. Do you plan on processing/interpret the data on your own?

    Find out more:
    After Effects Tutorials: motion design, expressions, scripting.

  • Rainier Raydán

    April 29, 2019 at 2:27 pm

    Hi!

    I just need to access to the time property of every marker via scripting. I know how to do it in expressions but I can’t find anything about it on the scripting guide…

  • Dan Ebberts

    April 29, 2019 at 4:45 pm

    Here’s a simple example to retrieve the times of the first comp marker and the first marker for layer 1:


    var myComp = app.project.activeItem;
    var myLayer = myComp.layer(1);
    if (myComp.markerProperty.numKeys > 0){
    alert(myComp.markerProperty.keyTime(1));
    }
    if (myLayer.property("Marker").numKeys > 0){
    alert(myLayer.property("Marker").keyTime(1));
    }

    Dan

  • Rainier Raydán

    April 29, 2019 at 5:11 pm

    Was it that easy??
    haha thanks!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy