-
Changing X-scale based on position.
Hi there,
I’m looking for a way to change just the Y scale based on the position or distance from a certain point. For example as an object moves further away from the anchor point of another object it scales the Y position (gets slimmer) as it moves away from it.
So far I’ve found this which does both scale dimensions and only does it to the centre of the comp. Not a specific point / null / layer etc:
Any help is greatly appreciated. Thanks in advance!
pct = .50; // increase by 25%
r = 100; // distance to being increasing scale
center = thisComp.width/2;
p = toWorld(anchorPoint);
d = length(p,[center,p[1]]);
mult = ease(d,0,r,pct,0);
value*(1+mult)