-
Tracking Child Layers – 1 Dimension
I’m using the following expression track a child layer that is parented to a null:
c = thisComp.layer(“box”);
c.toWorld(thisComp.layer(“box”).transform.anchorPoint);The expression works fine, except I only want to track the X and Z values. It’s a shadow that’s following under an object as it flies into the distance – the object casting the shadow moves up and down, but I want the shadow locked in its Y position.
(The reason I’m not using a light to cast a shadow is that the ground is a stock video and not an actual 3D surface that accepts a real shadow, so I’m using an artificial shadow)