Page 1 of 1

Scale text according to camera distance

Posted: August 8th, 2005, 9:53 am
by salvazalvi
Hi,

I would like to place some text layers in a 3D comp, but I want them to rotate with to camera in order to always face the camera, and I also want them to remain at a fixed size during the comp. In other words, 3D location but no 3D transform. Any clue how to do that ?

Thanks,

salvazalvi

Posted: August 8th, 2005, 11:02 am
by salvazalvi
So far I've managed to do that :

-AutoOrient the layer towards camera
- Z rotation =

Code: Select all

"thisComp.layer("Camera 1").rotation
And for the scale :

Code: Select all

dist = length(thisComp.layer("Camera 1").position, position);
S=dist/20.4;
[S,S,S]
20.4 being the value that seems fine for my project.

But scale changes during time, and my text isn't always the same size. What am I doing wrong ?