Z depth volumetrics?

Am I doing something wrong, or does the VRayZDepth render element not work with volumetrics (VRay and Phoenix grids)?

I have a smoke tendril coming towards the camera that I made in Phoenix, and I want to fade it out by distance in post. If Z depth doesn’t work on volumetrics, is there another way to achieve this?

Nevermind. I found the answer here.