So I am baking my smoke simulations on a headless machine. I am using the following snippet of python (bake-all.py
):
import bpy
for scene in bpy.data.scenes:
bpy.ops.ptcache.bake_all({'scene': scene,})
Together with:
/path/to/blender -b scene.blend -P bake-all.py
The smoke cache files are created properly. I then render using (for example):
/path/to/blender -b scene.blend -f 2
However, the smoke is not rendered into the scene and the smoke cache directory is empty; all cache files have been deleted.
What am I doing wrong?