Page 1 of 1

Find the position and rotation values of a parented layer.

Posted: October 22nd, 2008, 6:57 am
by bazookajoe
Hello, this is my first post here but have been reading the forum loads and it has been a great help.

I have a layer thats Parented to another layer on which I have keyframed a few rotations. What I would like to be able to do is get the actual X & Y positions of the Parented layer whilst it is being moved by the Parent.

Is this possible?

Ideally I would like to convert that data to keyframes to add to the Parented layer- hopefully getting rid of the original Parent layer.

any help much appreciated!

Re: Find the position and rotation values of a parented layer.

Posted: November 18th, 2008, 5:21 am
by Paul Tuersley
You can get the position of a parented layer by adding this expression to the Position property of another layer:

Code: Select all

a = thisComp.layer("name of parented layer");
a.toWorld(a.anchorPoint);
To bake the result into keyframes, add a keyframe to the property with the expression, right-click on it and choose Keyframe Assistant > Convert Expression to Keyframes.