ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Arrow point out position of other shape

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nick Lx
Arrow point out position of other shape
on Mar 5, 2020 at 9:20:37 pm

Hey,

I'm trying to figure out how to track a shapes position and point it out by using an arrow.
Is this possible?

example:


Return to posts index

Andrei Popa
Re: Arrow point out position of other shape
on Mar 6, 2020 at 8:33:25 am

This to the rotation of the arrow:

p2 = thisComp.layer("Arrow Layer").toComp([0,0]);
p1 = toComp(anchorPoint);
v = p2-p1;
radiansToDegrees(Math.atan2(v[1],v[0]))


This expression was offered as solution by Dan Ebberts in this thread

Andrei
My Envato portfolio.


Return to posts index

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