I refered to this post in the following link and I know this is usually done with
scene.render.filepath = fp + str(frame_nr) bpy.ops.render.render(write_still=True) # render still
from : Python Render Specific Frames However, this only stores the colour images. Not the Z buffer lined to a path. How can I do it?
could any one please tell me how to do it for the depth images?