-
Z Rotation based on camera proximity??
I’m clearly missing something critical. Any assitance will be gratefully appreciated.
I’ve tried the following expression:
startR =150// start rotation 150 pixels from camera
endR = 0; // end rotation 0 pixels from camera
C= thisComp.activeCamera;
P = length(toWorld(anchorPoint),C.toWorld([0,0,0]));
linear(P,startR,endR,0,-20)//0 degrees at start minus 20 at endThis yields odd results though I can’t see my error. The layer rotates but the distance from the camera isn’t accurate. In fact the layer starts in the rotated position and rotates to 0 as the camera approaches…
Thanks.