bulldozer=thisComp.layer("Bulldozer");
hp=bulldozer.toWorld(bulldozer.anchorPoint); // house position //
And just adjust the anchor point of each layer until the layers line up.
If the house layer and the bulldozer layer occupy different z positions then it's slightly more tricky, because what you're creating is essentially an optical illusion based on parallax. I'd have to think about it a bit more...
-Chris
On 17/01/2012, at 12:38 PM, scott.aelist wrote:
I have a 2D layer (let's say a bulldozer) that has to push a 3d layer (a house). I just want to parent the house to the bulldozer, or tie it to a null that tracks with the bulldoser, but it doesn't work because they're in different spaces and i get a paralax effect. I know how to use the toComp expression to tie a 2d layer to a 3d layer, but this is the reverse and i have no idea how to do it. How can i have the bulldozer push the house and have them move at eh same rate?