[Durian-svn] [5833] write own pointcache per seed

campbell institute at blender.org
Sat Jun 26 14:20:03 CEST 2010


Revision: 5833
          https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=5833
Author:   campbell
Date:     2010-06-26 14:20:03 +0200 (Sat, 26 Jun 2010)
Log Message:
-----------
write own pointcache per seed

Modified Paths:
--------------
    pro/scripts/utilities/batch_bake_smoke.py

Modified: pro/scripts/utilities/batch_bake_smoke.py
===================================================================
--- pro/scripts/utilities/batch_bake_smoke.py	2010-06-26 12:16:07 UTC (rev 5832)
+++ pro/scripts/utilities/batch_bake_smoke.py	2010-06-26 12:20:03 UTC (rev 5833)
@@ -84,8 +84,13 @@
         for md in obj.modifiers:
             if md.type == 'SMOKE' and md.smoke_type == 'DOMAIN':
                 context = base_context.copy()
-                context["point_cache"] = md.domain_settings.point_cache_high
+                ptcache = md.domain_settings.point_cache_low
+                ptcache.name = "cache_%d" % seed
+                ptcache = md.domain_settings.point_cache_high
+                ptcache.name = "cache_%d" % seed
 
+                context["point_cache"] = ptcache
+
                 bpy.ops.ptcache.free_bake(context)
                 bpy.ops.ptcache.bake(context, bake=True)
 



More information about the Durian-svn mailing list