Cow Update: Tracking a Child Part 1
In this tu
torial, I show you how to track the position of a parented layer using expressions in Adobe After Effects. Special thanks to Michael Natkin and Dan Ebberts for sharing their knowledge.
To track the position of a child layer, use this expression on the layer you want to effect.
L = thisComp.layer(”child_layer”);
P = L.toWorld(L.anchorPoint);
where P[0] gives x, P[1] gives y, and P[2] gives z.





It’s always a great plasure to watch your tutorials! Looking forwared to the second part :)
(PS: I choose to get the Sony EX3… )
This is SICK! Thanks!
AMAZING….ABSOLUTELY AMAZING
Thanks, Guys.
It’s always a blast putting the tutorials together.
Hey,
Thanks for the great tutorial.
I’ve tryed it using trapcode’s particular to make the “the comet tail”. I manage to match te X and Y position for the emitter position, but it didn’t work for the Z position.
So if some got the same problem, i found the solution!!
I just put the code (L = thisComp.layer(”child_layer”);
P = L.toWorld(L.anchorPoint);) on a nul object and than pickwhip the z emitter position to the z anchor point of the nul object! It works.
Hope that could help someone.
thanks to all the members of telescopemedia
for sharing a lot of knowledge with us.i m crazy about animation,editing and lot of things like this and this is the rite place for me and for all the ppl like me..thanks again.
Hi carl,
Is there a way of adjusting the code to work for scale and rotation as well?
Ben –
I’m thinking it would be possible to adapt Dan Ebbert’s IK expressions for this purpose, but I don’t have a working solution at the moment.
Here’s the IK code for your reference.
http://motionscript.com/design-guide/ik.html
Are you trying to link Particular or Particle World to your child?