Fade as Move Away From Camera
Just as you can reduce a layer’s saturation as it moves awayfrom the camera, you can reduce its Opacity. The expression
is, in fact, quite similar:
minDist = 900;
maxDist = 2000;
C = thisComp.activeCamera.toWorld([0,0,0]);
dist = length(toWorld(transform.anchorPoint), C);
ease(dist, minDist, maxDist, 100, 0)
The only differences between this expression and the previous
one are the fourth and fi fth parameters of the ease()
statement. In this case, as the distance increases from 900
to 2000 the opacity fades from 100% to 0%.
No comments:
Post a Comment