ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Beam Expressions

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Isaac O'Connor
Beam Expressions
on May 26, 2019 at 12:01:32 pm

Hi,

I am looking to connect the starting and ending points on a generated beam to the corner of two square shape layers. Imagine the lines on a one point perspective grid.

Is there an expression for a shape layers corners?

Thanks

Isaac


Return to posts index

Dan Ebberts
Re: Beam Expressions
on May 26, 2019 at 5:15:39 pm

As an example, you could use something like this for the upper left corners:

L = thisComp.layer("Shape Layer 1");
r = L.sourceRectAtTime(time,false);
fromComp(L.toComp([r.left,r.top]))

and like this for the lower right corners:

L = thisComp.layer("Shape Layer 1");
r = L.sourceRectAtTime(time,false);
fromComp(L.toComp([r.left+r.width,r.top+r.height]))

Dan



Return to posts index

Isaac O'Connor
Re: Beam Expressions
on Jun 13, 2019 at 2:00:39 pm

Worked perfectly, thanks Dan.

You the man.

Isaac


Return to posts index

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