Help! How create a "depth map" using ParaView (Is it possible)

Thank you very much for your answer!

I tried this script, but it didn’t run in my “ParaView”.
I think that the reason is that there is no “VTK” in my “ParaView”. May be I wrong?
Although, if I enter a single string “import vtk”, it does not produce any errors.

One more question:
Where can I find detailed and step-by-step instructions on how to (properly) install the “VTK” for my “ParaView”?