this is a Frankenstein version of another expression I found on this forum.
BaseSize = thisComp.layer(“Scale #s”).effect(“Base size”)(“Slider”)
maxScale = thisComp.layer(“Scale #s”).effect(“Enlarge size”)(“Slider”)
MaxDist = thisComp.layer(“Scale #s”).effect(“MaxDist”)(“Slider”)
d = toWorld(anchorPoint) – thisComp.layer(“scaling Null”).toWorld([0,0]);
distance=length(d);
linear(distance, 0, MaxDist, [maxScale, maxScale], [BaseSize, BaseSize]);
so the top 3 lines are just Expression Sliders so I quickly fine-tune certain variable amounts
MaxDist=distance in pixels to begin scaling
maxScale=largest percentage to scale item
BaseSize=starting out size
https://headsquared.com/temp/AppleDock_v01.mov
I was working on a hi-bred of this expression and the one Mylenium offered up but nothing concrete yet…
Thanks,
JCJ