AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat May 25, 2013 1:37 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Scale text according to camera distance
PostPosted: Mon Aug 08, 2005 9:53 am 
Offline

Joined: Tue Sep 21, 2004 7:29 am
Posts: 36
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 08, 2005 11:02 am 
Offline

Joined: Tue Sep 21, 2004 7:29 am
Posts: 36
So far I've managed to do that :

-AutoOrient the layer towards camera
- Z rotation =
Code:
"thisComp.layer("Camera 1").rotation


And for the scale :
Code:
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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group