-
Problems controlling layers in a precomp with a parent null object.
I have several text layers in a pre-comp with these expressions to the scale and opacity.
Now moving the “cursor” null-layer in the parent composition works correctly. It interacts and controls the opacity and scale of the precomposed text layers (Kursdel-intro), fine ☺
BUT only if I move the “cursor” layer. I want to move the precomposition and get the same interaction with the “cursor” layer.How do I move the precomp, with the null in a fixed position, and get the same effect?
//scale
minDist = 5;
maxDist = 100;
minScale = 50;
maxScale = 130;C = comp("Kursdel-intro").layer("cursor");
dist = length(C.toWorld(C.anchorPoint),toWorld(anchorPoint))
s = ease(dist,minDist,maxDist,maxScale,minScale);
[s,s]//opacity
dMax = 100;
dMin = 33;
d = length(comp("Kursdel-intro").layer("cursor").position,position);
ease(d,dMin,dMax,100,33);