-
sourceRectAtTime Proximity Detection
If I precomp layers, this works fine.
R = thisLayer;
L = thisComp.layer(index+1);
delta = (R.width + L.width)/2;
if (length(R.position, L.position) <= delta)
0 else 100;But text and shape layers that aren’t precomped, when I check width, are the width of the comp. The problem is that it doesn’t work with the above expression.
I’ve tried using sourceRectAtTime, but it doesn’t appear to be working, but at least, it doesn’t see the width as the width of the comp.
R = thisLayer;
L = thisComp.layer(index+1);
delta = (R.width + L.sourceRectAtTime().width)/2;
if (length(R.position, L.position) <= delta)
0 else 100;Any suggestions.