[Mac Lad] “Is it possible to change the scale of the shadow layers depending upon the distance from the null?”
Sure.
Add four Slider Control effects to your CONTROL layer, and name them and set their values as follows:
minDistance 0
minDistanceScale 100
maxDistance 1000
maxDistanceScale 0
The put this expression on the scale property of your shadow layers:
L = thisComp.layer("CONTROL");
maxDistance = L.effect("maxDistance")("Slider");
maxDistanceScale = L.effect("maxDistanceScale")("Slider");
minDistance = L.effect("minDistance")("Slider");
minDistanceScale = L.effect("minDistanceScale")("Slider");
distance = length(L.toComp(L.anchorPoint), thisLayer.toComp(thisLayer.anchorPoint));
scaleFactor = linear(distance, minDistance, maxDistance, minDistanceScale, maxDistanceScale) / 100;
[value[0] * scaleFactor, value[1] * scaleFactor]
Again, update the name CONTROL as necessary for your comp. You can adjust the values of the slider controls to tune the effect to your liking.
Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive | RenderBreak [blog] | Profile [LinkedIn]