Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expression for Mirroring a value but setting different max and min parameters

  • Expression for Mirroring a value but setting different max and min parameters

    Posted by Brian Lee on November 23, 2015 at 6:50 pm

    I’m trying to mirror the Blur Radius of a camera lens blur effect to the opacity of the text layer of which it is applied. Pickwhipping the blur to the opacity is easy enough however when the opacity=0% I want the blur radius to be “11” and when the opacity=100% i want the blur effect to be “2”. So for instance if I animate the opacity property to go from 0%-100% i want the blur radius to decrease from 11 to 2 at the same rate.

    Is there as an expression that I can apply that will allow me to do this?

    Thanks!

    Brian Lee replied 10 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    November 24, 2015 at 7:19 am

    For lens Blur Radius:

    linear(transform.opacity, 0,100,11,2)

    this takes the opacity value and linearly interpolates it from 0-to-100 range to 11-to-2 range.

  • Brian Lee

    November 24, 2015 at 4:53 pm

    Thank you so much! That worked perfectly and will now be using this very powerful function so much more in my work.

    Brian

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