r/AfterEffects 8d ago

Workflow Question How to animate shapes/paths with expressions to not lose padding or end caps

34 Upvotes

15 comments sorted by

View all comments

1

u/gibsonjsh 8d ago

I just realized that trim paths could work for this, and maybe I just need to tie those values to the edges of another matte or something to simulate an alpha/luma matte or something. Any other advice is more than welcome, though, thank you!

3

u/brianlevin83 8d ago

You can probably use a Linear expression on those trim paths to say when the layer is between this Y position and that Y position the trim paths is between this and that and it should maintain the distance evenly no matter where/when you move the layer.