Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects anchored lines

  • anchored lines

    Posted by Dustin Ward on October 7, 2009 at 11:20 pm

    I’m trying to attach only one end of a line to a null that is tracked to some footage. I can get the line to follow the null, but I am trying to get one end to stay stationary while the other follows the tracker information.

    Curious Turtle replied 16 years, 9 months ago 2 Members · 1 Reply
  • 1 Reply
  • Curious Turtle

    October 8, 2009 at 5:12 am

    There’s a number of different ways to do this and here’s a couple:

    i) Use a Beam effect, and set one end to your static point. Then use an expression and pickwhip the Null’s position to the second point.

    ii) Use a lovely “Point At” expression on a line shape. Apply this to the rotation of you line layer:

    from=transform.position;
    to=thisComp.layer("YOUR LAYER").transform.position;
    delta=sub(from,to);
    angle=Math.atan2(delta[1],delta[0]);
    radiansToDegrees(angle)+180;

    Just change the layer name in line 2 to your Null layer’s name.

    All the best,
    Ben

    Curious Turtle Pro Video
    Training | Editing | Support
    Out Now – Film Wash Color Effects Vol. 3
    for After Effects & Apple Color
    & Mocha training for AE & FCP

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