-
Using distance to control transparency
Hi, Im trying to control the transparency of an object by using the distance of it with another object. Any help would be much appreciated. thanks
object1=transform.position;
object2=thisComp.layer("object2").transform.position;distance=length(point1, point2);
tMin=250;
tMax=50;
value1=0;
value2=100;transform.opacity =linear(distance, tMin, tMax, value1, value2);