-
An expression to find the maximum value over time?
I have two values I’m trying to animate, a hue and a position. I’m animating the position with keyframes. I’d like the hue to depend on the position of a layer, and change from red to blue and back. In order to do my hue calculation, I need to use the minimum and maximum values for the position during the entire length of the layer.
As we go along in production, the minimum and maximum values for position may change, and the position keyframes will be re-timed, so I need a flexible way so that the hue will stay within red and blue, but also stay time-synched to the position.
Is there an expression that will find the maximum and minimum value of another property for use?
Thanks!