AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat Dec 20, 2014 4:29 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Gathering position info from nested comp
PostPosted: Tue Jan 29, 2008 7:51 am 
Offline

Joined: Tue Mar 13, 2007 9:42 am
Posts: 11
Location: Hannover, Germany
Hi all,

is it possible to access a layer in a nested comp and then read its position data in relation to the main comp? I need to gather something like a toComp value, which I won't get if I just address the nested comp by itself, without reference to the main comp. I'd be more than glad if I could skip motion-tracking a layer that I animated myself.

Thanks,
Thomas


Top
 Profile  
 
 Post subject: Re: Gathering position info from nested comp
PostPosted: Tue Jan 29, 2008 9:40 am 
Offline

Joined: Sat Jun 26, 2004 10:01 am
Posts: 309
Location: Folsom, CA
It's going to look something like this:

L = comp("your nested comp name").layer("your layer name");
thisComp.layer("your nested comp name").toComp(L.toComp(L.anchorPoint));

Dan

_________________
http://www.motionscript.com


Top
 Profile  
 
 Post subject: Re: Gathering position info from nested comp
PostPosted: Tue Jan 29, 2008 10:04 am 
Offline

Joined: Tue Mar 13, 2007 9:42 am
Posts: 11
Location: Hannover, Germany
Hey Dan!

THX for the super quick answer! I tried something similar to this, but it wouldn't work. And my workaround wasn't the best one in the world either.

By the way, I'm almost done with that IK/puppet tool project I contacted you about (I just changed my last name in order to confuse people :D ). Coming along great!

Cheers,
Thomas


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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