-
move on event
hey,
is it possible to move an layer if something happens, for example, when my solid is higher than wide, layer 2 should move from p1 to p2 and vice versa. i coded something like that, but its not moving on the event.w=thisComp.layer("Black Solid 1").width/100*thisComp.layer("Black Solid 1").transform.scale[0];
h=thisComp.layer("Black Solid 1").height/100*thisComp.layer("Black Solid 1").transform.scale[1];if (h < w) {
linear(time,key(1),key(2));
} else {
linear(time,key(2),key(1));
}