Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions point object forward, not toward camera?

  • point object forward, not toward camera?

    Posted by Andy Engelkemier on November 22, 2013 at 12:54 pm

    I have some text floating at the end of some 3D lines. Picture a rolled up porcupine, and words floating at the end of each needle. I want the words to point toward the camera direction, but not look at the camera. If they look at the camera then they angle themselves.

    The camera doesn’t actually move around, so in this case I realized it Might be easiest to just link the position only, but not the rotation. But my lines all intersect at the center of the screen, and I need positions for the end points of the lines.

    So my thought was to parent a null object to my line, then use an expression to attach the text position to the Null position.

    Well, if you’re more experienced than me, you’re probably aware that didn’t work. I need an expression that would take the world coordinates of the null. But I’m striking out in finding that.

    I also tried to use the first position and add it to it’s parent. The initial position was correct, but I think it is always staying in a positive direction or something. I’m not exactly sure what the math is doing, but it’s not what I was hoping for.

    Am I headed the right direction in that I need world coordinates? Or is there a more efficient route to take?

    Andy Engelkemier replied 12 years, 5 months ago 1 Member · 1 Reply
  • 1 Reply
  • Andy Engelkemier

    November 22, 2013 at 1:00 pm

    Shoot. After a coffee my google skills suddenly started working.
    Dan Ebberts to the rescue. He posted up the answer somewhere else. I used this, and it’s like magic.

    L = thisComp.layer(“Null 3”);
    L.toWorld(L.anchorPoint);

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