-
Rotation On Off from other layer position
hi all,
i very new to expression. i found this expression and i would like to put in y rotation.
how can i modify it to stay to last value once it hit zero.if layer(“Avoid Me”) is far away, value y rotation is 100. if result 0, rotation is 0 and never affected with layer(“Avoid Me”) anymore.
please help me sir.
thank you.
D_opaq =10
D_trans = 150;
d = length(position, thisComp.layer("Avoid Me").transform.position);
result = ease(d, D_opaq, D_trans, 100, 0);
[result]
if(result==0){
[0]
}