ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Paul GaleAE script to set anchor point to position of another layer?
by on Sep 23, 2012 at 11:42:03 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.


Return to posts index

Brian CharlesRe: AE script to set anchor point to position of another layer?
by on Sep 23, 2012 at 2:27:26 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.


Return to posts index

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