Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 3D text layer facing camera

  • Lloyd Alvarez

    February 25, 2008 at 11:53 pm

    Yep, 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

    https://aescripts.com

  • Lloyd Alvarez

    February 25, 2008 at 11:55 pm

    This might be obvious, but I forgot to mention that you need to enable 3D rotation per character first

    https://aescripts.com

  • Ryan Chan

    February 26, 2008 at 6:29 am

    oh, 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 pm

    Hey 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

    https://aescripts.com

  • Dan Ebberts

    February 26, 2008 at 6:24 pm

    Hey 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 pm

    Hey 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

    https://aescripts.com

  • Ryan Chan

    February 28, 2008 at 9:29 am

    thank 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy