Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects AE script to set anchor point to position of another layer?

  • AE script to set anchor point to position of another layer?

    Posted by Paul Gale on September 23, 2012 at 11:42 am

    Anyone know of a script or simple technique to set the anchor point of a layer to the position or anchor point of another layer (without moving the position of the layer)? For example, if I have a complex 3D scene and I decide that I need to rotate a 3D object around the position of another object, accurate placement of the anchor point can be quite tricky and time consuming (at least I’m finding that).

    A script that allows you to select the layer you want to change the anchor point of and the target layer (and maybe even gives you the option to set the anchor to the outside edge/corners of the layer or the anchor point itself) would be amazing.

    Any ideas?

    Many thanks,

    Paul.

    Brian Charles replied 13 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Brian Charles

    September 23, 2012 at 2:27 pm

    Other than using the pick whip attach the anchor point to the other layer’s position?

    So the expression on the layer’s anchor point would look something like:

    thisComp.layer(“other layer name”).transform.position

    You may have to offset the position of the layer to account for the shift in anchor point.

    Or use a Null Object as a parent and place the Null in the position you want the rotation to occur.

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