Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions another layer marker / expressions question

  • another layer marker / expressions question

    Posted by Sam Young on June 8, 2006 at 3:19 am

    is there a way, using expressions, to count the number of markers on a layer? if so, would it be possible to call on the “index” value of a marker on a layer much in the same way you can call on the index (stacking order) of a layer in a comp?

    Dan Ebberts replied 20 years, 2 months ago 3 Members · 2 Replies
  • 2 Replies
  • Mylenium

    June 8, 2006 at 5:14 am

    Yes, you could do that. Not sure off the top of my head, but there should be a thisLayer.numMarkers method which would give you exactly what you need.

    Mylenium

    [Pour Myl

  • Dan Ebberts

    June 8, 2006 at 1:23 pm

    You get the number of markers this way:

    layer.marker.numKeys

    (or just marker.numKeys if the expression is applied to the layer with the markers)

    You’d use the marker index this way:

    n = 5;
    t = layer.marker.key(n).time;

    Dan

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