Activity › Forums › Adobe After Effects Expressions › 3D text layer facing camera
-
3D text layer facing camera
Posted by Ryan Chan on February 25, 2008 at 10:11 amhello everybody, i wonder if it is possible for the letters of a 3D text layer can face the camera all the time just like any 3D layer does? thanks
ryan
Ryan Chan replied 18 years, 2 months ago 3 Members · 7 Replies -
7 Replies
-
Lloyd Alvarez
February 25, 2008 at 11:53 pmYep, you’ll need to create a range for each character and add this expression to each one:
for X rotation:
C = thisComp.activeCamera;
V = C.toWorldVec([0,0,1]);
P = toWorld(anchorPoint);
lookAt(P, P + V)[0];for Y rotation:
C = thisComp.activeCamera;
V = C.toWorldVec([0,0,1]);
P = toWorld(anchorPoint);
lookAt(P, P + V)[1];for Z rotation:
C = thisComp.activeCamera;
V = C.toWorldVec([0,0,1]);
P = toWorld(anchorPoint);
lookAt(P, P + V)[2];-Lloyd
-
Lloyd Alvarez
February 25, 2008 at 11:55 pmThis might be obvious, but I forgot to mention that you need to enable 3D rotation per character first
-
Ryan Chan
February 26, 2008 at 6:29 amoh, thank you Lloyd Alvarez for your response, BUT, I AM REALLY REALLY sorry that i think i forgot to say something else, sorry again first, actually i want to know if it is possible to have the text keep facing camera when they also lie on a path which is curvy, so, each of the text should have different orientation. sorry and thanks
ryan
-
Lloyd Alvarez
February 26, 2008 at 3:13 pmHey Ryan,
I still works if the text is on a path. I setup a quick project for you to take a look at. You can download the project here:
https://aescripts.com/scripts/Per_Character_3D_LookAtCamera.aep.zip
-Lloyd
-
Dan Ebberts
February 26, 2008 at 6:24 pmHey Lloyd,
I’m curious why you added a separte animator and range selector for each character. It seems to work the same if you just use one animator and set the selector to include all the characters. Maybe I’m missing something.
Dan
-
Lloyd Alvarez
February 26, 2008 at 8:22 pmHey Dan,
Good Point. I guess I just assumed that you needed to do that, but you are right. Not needed. I updated the project. Thanks
-Lloyd
-
Ryan Chan
February 28, 2008 at 9:29 amthank you Lloyd and Dan, but base on the project suggested, when i move the camera, the text seems fine, but when i reshape the path, the letter won’t face camera anymore, is it normal or i shouldn’t expect the text can face camera when they lied on a more curvy path?
thanks
ryan
Reply to this Discussion! Login or Sign Up