AE ENHANCERS

Expressions/Scripts/Presets
It is currently Fri May 24, 2013 8:12 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Find the position and rotation values of a parented layer.
PostPosted: Wed Oct 22, 2008 6:57 am 
Offline

Joined: Wed Oct 22, 2008 6:01 am
Posts: 1
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!


Top
 Profile  
 
 Post subject: Re: Find the position and rotation values of a parented layer.
PostPosted: Tue Nov 18, 2008 5:21 am 
Offline

Joined: Sat Jun 05, 2004 7:59 am
Posts: 646
Location: London, UK
You can get the position of a parented layer by adding this expression to the Position property of another layer:
Code:
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group