Z Axis not working (Screenshots)

Hey everyone!

I’m using Harmony Essentials. I’m doing a scene with robed figures in a forest. I use the z axis to determine whether the character will go in front or behind the tree.

For some reason, it stopped working. Even if I bring the tree to be directly in front of the camera, for some reason, the ghost remains in front of it. The screenshots will show more.

Is there something I’m doing wrong?

Make sure the composite where your puppet and BG are connected is set to “pass through”. You can check on this by clicking the yellow box on the composite.