if (time >= 0){ CameraPos = thisComp.activeCamera.toWorld([0,0,0]); LayerPos = toWorld([0,0,0]); earthNull = thisComp.layer("Earth Null"); EarthPos = earthNull.toWorld(earthNull.anchorPoint); v1 = CameraPos - EarthPos; v2 = LayerPos - EarthPos; angle = radiansToDegrees(Math.acos(dot(normalize(v1),normalize(v2)))); linear(angle,85,95,100,0); }else{ value; }

try{ CameraPos = thisComp.activeCamera.toWorld([0,0,0]); LayerPos = toWorld([0,0,0]); earthNull = thisComp.layer("Earth Null"); EarthPos = earthNull.toWorld(earthNull.anchorPoint); v1 = CameraPos - EarthPos; v2 = LayerPos - EarthPos; angle = radiansToDegrees(Math.acos(dot(normalize(v1),normalize(v2)))); linear(angle,85,95,100,0); }catch(e){ value; }