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?
base_path
andfile_slots
which is a list of connections that contain the subpath in their path property -fnode.file_slots[0].path='filename'
$\endgroup$