ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

anchored lines

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dustin Wardanchored lines
by on Oct 7, 2009 at 11:20:33 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.


Return to posts index

Ben Heusner BrownleeRe: anchored lines
by on Oct 8, 2009 at 5:12:26 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]