Find the position and rotation values of a parented layer.

Moderators: Disciple, zlovatt

Post Reply
bazookajoe
Posts: 1
Joined: October 22nd, 2008, 6:01 am

October 22nd, 2008, 6:57 am

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!
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

November 18th, 2008, 5:21 am

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.
Post Reply