Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions marker querying syntax question

  • marker querying syntax question

    Posted by Aaron Kent on March 2, 2013 at 8:20 pm

    Hey guys, playing around today and having a little trouble.

    This is working for me:

    (thisComp.layer(“layer1”).marker.nearestKey(time).index==1)

    this successfully tests until the CTI hits the first marker on the timeline

    what is the correct syntax if I want to instead test for the marker’s comment instead of index.

    I’ve tried things like below (and I named my marker “m1”)

    marker.nearestKey(time).comment == m1

    but I keep getting errors. I can’t find enough documentation that’s clear enough about AE expressions being able to get the comment instead of just the markers index value.

    Cheers

    AK

    Aaron Kent replied 13 years, 2 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    March 2, 2013 at 8:23 pm

    The marker comment is a string, so I’d try it like this (not tested):

    marker.nearestKey(time).comment == “m1”

    Dan

  • Aaron Kent

    March 2, 2013 at 8:42 pm

    Thanks Dan, I think thats got it.

    AK

  • Aaron Kent

    March 4, 2013 at 12:19 am

    Making slow progress. I need to do more beginner lessons.

    https://vimeo.com/60968609

    cheers

    AK

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

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