Page 1 of 1

Gathering position info from nested comp

Posted: January 29th, 2008, 7:51 am
by thomaskiel
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

Re: Gathering position info from nested comp

Posted: January 29th, 2008, 9:40 am
by Dan Ebberts
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

Re: Gathering position info from nested comp

Posted: January 29th, 2008, 10:04 am
by thomaskiel
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