Scale text according to camera distance

Moderators: Disciple, zlovatt

Post Reply
salvazalvi
Posts: 36
Joined: September 21st, 2004, 7:29 am

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
salvazalvi
Posts: 36
Joined: September 21st, 2004, 7:29 am

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 ?
Post Reply