Parenting an object to x-axis motion only of another object whose motion is driven by several nulls?
So this doesn't seem like it should be an overly complex thing to set up, but I haven't been able to figure out how to do it. I'm still kind of a novice when it comes to expressions...
I have a crane-like object rigged up, carrying a payload that sways back and forth a bit to simulate the inertia of a large, heavy object. I'd like to add a "shadow" underneath the payload object; it needs to match the x-axis movement of the "payload", but ignore the y- (and z-) axis motion. The tricky part is that the "payload" is parented to a "hook", which is parented to the head of the crane, which is parented to part 1 of the crane arm, which is parented to part 2 of the crane arm, etc. etc. The "payload" itself has no keyframes and no moving properties itself -- the motion is driven entirely by the various other layers parented througout the chain. My workaround is to brute force it, throwing everything into a subcomp that I track using Mocha, then strip out all movement other than the x-axis, but there must be a better way to do this. Any suggestions?
