Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Triangulate/find the center of 3 x 3d points in After Effects?

  • Triangulate/find the center of 3 x 3d points in After Effects?

    Posted by Jordan Shipman on June 15, 2012 at 10:58 pm

    Is there a way to find the center and/or triangulate 3 x 3d points in after effects and create a new 3d null at that position? Thanks for any help!

    Dan Ebberts replied 14 years ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    June 16, 2012 at 1:57 am

    I think this works:

    p1 = thisComp.layer(“3D Layer 1”).transform.position;
    p2 = thisComp.layer(“3D Layer 2”).transform.position;
    p3 = thisComp.layer(“3D Layer 3”).transform.position;
    (p1 + p2 + p3)/3

    Dan

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