ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Brian LeeExpression for Mirroring a value but setting different max and min parameters
by on Nov 23, 2015 at 6:50:25 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!


Return to posts index

Kalle KannistoRe: Expression for Mirroring a value but setting different max and min parameters
by on Nov 24, 2015 at 7:19:58 am
Last Edited By Kalle Kannisto on Nov 24, 2015 at 7:21:16 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.


Return to posts index

Brian LeeRe: Expression for Mirroring a value but setting different max and min parameters
by on Nov 24, 2015 at 4:53:50 pm

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

Brian


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]