Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Connecting two moving layers with a line

  • Connecting two moving layers with a line

  • Simon Bonner

    February 28, 2008 at 12:44 pm


    I have a comp with several small, red dots that move independently. I want to add lines connecting some of these dots so that when the dots move towards/away from one another, the lines reposition themselves to stay ‘stuck’ to the dots.

    If I can get this to work, some of the dots will have more than one connection. Perhaps this is important to note, I wouldn’t know being an expression fool.

    Any ideas would be greatly appreciated!

    Simon Bonner

  • Darby Edelen

    February 28, 2008 at 4:48 pm

    You can use a Generate > Beam effect on a full-screen solid to draw a line between two points, all that remains is finding out the starting and ending point of the line:

    Starting Point:

    l = thisComp.layer("beginDot");

    Ending Point:

    l = thisComp.layer("endDot");

    Darby Edelen
    Left Coast Digital
    Santa Cruz, CA

  • Lloyd Alvarez

    February 28, 2008 at 4:50 pm

    Use the beam effect on a comp sized layer and pickwhip the Starting and Ending Points to the position of your dots.


  • Kyle Reynolds

    August 25, 2011 at 4:39 pm

    Tried this with the position value of a text layer so far, didnt work.

  • Dan Ebberts

    August 25, 2011 at 5:38 pm

    In what way? Do your text layers have parents?


Viewing 1 - 5 of 5 posts

Log in to reply.

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