System Information
Operating system: Arch Linux
Graphics card: RTX 2080
Blender Version
Broken: (All, latest check: 2.80)
Description
This code runs OK with no errors except that it does nothing. I have followed the similar patter as when baking smoke or fluid.
for scene in bpy.data.scenes:
for object in scene.objects:
for modifier in object.modifiers:
if modifier.type == 'PARTICLE_SYSTEM':
print("Baking particles")
override = {'scene': scene, 'active_object': object, 'point_cache': modifier.particle_system.point_cache}
bpy.ops.ptcache.free_bake(override)
bpy.ops.ptcache.bake(override, bake=True)The cache is empty when I open the file afterwards or try to render. When I set
use_disk_cache = True
the cache folder is created but can't be used by the blend file.
Files
Running as:
blender simpleParticles.blend -b -P bake.py