Activity › Forums › Adobe After Effects Expressions › Expression edge object?
-
Expression edge object?
Posted by Rafael on October 13, 2023 at 3:01 amIs there an expression that could do this? I am trying to create two bars top and bottom that would respond and adjust their height to the object animated in the center. Like this image in this link (I can’t add an image to this post, getting error)
View post on imgur.com
Tom Morton replied 11 months, 3 weeks ago 3 Members · 7 Replies -
7 Replies
-
Tom Morton
October 13, 2023 at 7:34 pmDefinitely is something that could be controlled by expressions, but feel I’d need a bit more info. Is the object in the middle something that will change or will it always be the “A”? And what sort of animations is applied to it?
-
Tom Morton
October 13, 2023 at 8:18 pm -
Rafael
October 13, 2023 at 8:23 pmThe object in the center would change. The alpha channel should be defining it. I recall many moons ago, Dan Ebbert had some expression about “magnet or repulsion” expressions. I was wondering if a simple rectangle with the anchor point ant the bottom could have the Y axis fluctuate with the scale value. But I am not great at expressions…
-
Tom Morton
October 13, 2023 at 9:48 pmCheck out my example above, this will achieve what you want without any expressions which will be much faster and still 100% accurate.
If you specially need expressions for any reason there’s a couple of options but in this case I would avoid as it can be done more easily with built in effects. The example above will work fine for an alpha or color channel.
The mosaic effect averages all the pixels in the entire row, and curves effect takes any color that isn’t pure black and makes it white. You can use this strategy in different ways but it will always respond to the animated object, in my case the abc text.
-
Rafael
October 20, 2023 at 12:27 amOMG, this is brilliant. You’re a genius! I thought something like that but I couldn’t voice it. The Curve is the key.
Thank you so much 🙏
Reply to this Discussion! Login or Sign Up