Thanks Dan, it partially worked. The first rotation from -90 to 0 works ok, but then nothing happens. If multiply the 360 by -1 then it’s the second rotation the one working, this one goes in the opposite direction.
So I tweaked the expression to this:
yRot=thisComp.layer(“rot”).transform.yRotation;
if
(yRot<0)
{
r=thisComp.layer(“rot”).transform.yRotation%360;
}
else
{
r=thisComp.layer(“rot”).transform.yRotation%360*-1;
}
x=linear(r,-90,0,2700,1749);
y=linear(r,-90,0,1640,880);
[x,y];
And apparently it works, I haven’t tested it extendedly but by scrubbing the timeline seems to be doing the trick.
Thanks again.
David.