Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Highest Keyframe Value

  • Highest Keyframe Value

  • Levi Borland

    January 12, 2022 at 10:30 pm

    Delete the quotes around shape layer 1 and shape layer 1. Re type the quotes and then Shape Layer 1 inside the new quotes. Perhaps they are two opening quotes, or closing quotes instead of one of each.

  • Dan Ebberts

    January 12, 2022 at 10:50 pm

    Try it this way:

    p = thisComp.layer("Shape Layer 1").transform.position;
    max = p.value[0];
    for (i = 1; i <= p.numKeys; i++){
      max = Math.max(max,p.key(i).value[0]);
    }
    max
  • Levi Borland

    January 13, 2022 at 12:23 am

    Looks much cleaner

  • Kevin Snyder

    January 13, 2022 at 1:14 am

    Thank you. That’s working great.

  • Kevin Snyder

    January 13, 2022 at 1:15 am

    Thanks for your efforts Levi. I appreciate it.

Viewing 11 - 15 of 15 posts

Log in to reply.

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