JavaScript
pointA = theComp.layer(“center”);
pointB = thisLayer.toComp(anchorPoint);
l = length(pointA, pointB);
s = linear(l, 0, 110, 100, 30);
[s, s]