Transparency of the layer depends on distance from camera
minDist = 600; maxDist = 10000; minOpacity = 10; maxOpacity = 100; try{ d = length(toWorld(anchorPoint),thisComp.activeCamera.toWorld([0,0,0])); linear(d,minDist,maxDist,maxOpacity,minOpacity) }catch(err){ value }
Recommended Posts