-
Scale layer based on another object’s position
I always forget how to do this, and I never seem to write it down.
Imagine a layer in AE. If you pull on the edge of that layer, you expand the layer out as far as you pull it.
I’m trying to do the same with a rectangle and an object on its right. If I pull the object out to the right, the rectangle needs to scale x out at the same rate that I moved the object.
I thought linear() would do it, but realized that just sets a range. I need to be able to stretch this out as much or as little as I need it. The rectangle’s anchor is set to left center edge so scaling works properly on x.
Can someone refresh my memory on the process for this? Thanks.