-
Triggering rotation off multiple layers with sample layer.
Hi,
I have one grid in comp with 84 images (160*160). With expression now, position of yellow layer when passes X axis of image layer rotates Y from 0-180. I will paste this expression on all image layers later. This is ok if animation only use rectangle, but I want to use other shapes (plus) Is it possible to maybe opacity (gradient…color) of this yellow layer to trigger rotation other leyers. This is expression that I use now.
p1 = thisComp.layer(“maska”).transform.position[0];
p2 = position[0];
tolerance = .5;
t1=(p1- p2)
t2=(p2-p1)
if (t1 > 80) 0else if (t1 < 80) linear(t1, 80, -80, 180, 0)
else linear(t2, 0, 160, 180,0)Thank you in advance
Igor Stikic


