-
Rotation expression
Hi again,
I want to be able to control the rotation of several objects (to be part of a transition). I dug up this expression here at the Cow and I tried to convert to rotation, but without any luck. I’m sure you will be able to what’s wrong in an instant 🙂
I need the layer to rotate in a maximum of 180 degrees.
Thanks guys.
Best,
Kimmouse_layer = thisComp.layer(“mouse layer”);
beginRotation = 0;
endRotation = 180;
beginDistance = 200;
endDistance = 0;
dis = length(this.position, mouse_layer.position);
val = ease(dis, beginDistance, endDistance, endRotation, beginRotation);
[val, val]