Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get Max value from graphic.

  • Dan Ebberts

    June 15, 2025 at 7:06 am

    Not directly from the graph editor, but you can analyze whatever property is driving the graph, with something like this:

    prop = thisComp.layer("White Solid 1").effect("Slider Control")("Slider");
    for (i = 0; i <= thisComp.duration; i += thisComp.frameDuration){
    max = (i == 0) ? prop.valueAtTime(i) : Math.max (max, prop.valueAtTime(i));
    }
    max

    but there will be a tradeoff between resolution and processing time. The example above checks the value every frame, but you could change it to check more often if you need finer resolution.

  • Smet Kira

    June 15, 2025 at 9:03 am

    Bless you sir Dan!

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