ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

This Expression Needs Work

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Chris Barnes
This Expression Needs Work
on Apr 16, 2019 at 11:18:52 pm

This should be really easy for people who know expressions. I am trying to link the Transform effect scale of layer A to the Blur Radius of a Camera Lens blur on layer B and have it offset by 100. So when the Blur Radius is at 0 the transform is at 100 and when I increase the Blur Radius the Scale increases. This is what I worked out so far.

100-thisComp.layer("blur").effect("Camera Lens Blur")("Blur Radius")

The problem is the Scale decreases when I increase the Blur Radius. What do I change?


Return to posts index

Dan Ebberts
Re: This Expression Needs Work
on Apr 17, 2019 at 6:27:38 am

I think you just need to change the minus to a plus:

100+thisComp.layer("blur").effect("Camera Lens Blur")("Blur Radius")


Dan



Return to posts index

Chris Barnes
Re: This Expression Needs Work
on Apr 17, 2019 at 3:38:59 pm

That did it. Now what if I want ratio between the two different. Say the parent keyframe increases by10 and the child increases by 5. Is that possible?


Return to posts index


Dan Ebberts
Re: This Expression Needs Work
on Apr 17, 2019 at 3:54:28 pm

I'm not sure if this is what you mean, but give it a try:

100+thisComp.layer("blur").effect("Camera Lens Blur")("Blur Radius")/2


Dan



Return to posts index

Chris Barnes
Re: This Expression Needs Work
on Apr 17, 2019 at 4:38:37 pm

That worked and thanks!


Return to posts index

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