l = thisComp.layer("StartNull"); fromComp(l.toComp(l.anchorPoint));
l = thisComp.layer("EndNull"); fromComp(l.toComp(l.anchorPoint));
s = value; l = thisComp.layer("StartNull"); c = thisComp.activeCamera; p = l.toWorld(l.anchorPoint); f = c.cameraOption.zoom; dist = p - c.toWorld([0,0,0]); vec = c.toWorldVec([0,0,1]); dist = dot(dist, vec); s * f / dist;
s = value; l = thisComp.layer("EndNull"); c = thisComp.activeCamera; p = l.toWorld(l.anchorPoint); f = c.cameraOption.zoom; dist = p - c.toWorld([0,0,0]); vec = c.toWorldVec([0,0,1]); dist = dot(dist, vec); s * f / dist;