[Durian-svn] [3181] write svn commands

william institute at blender.org
Tue May 11 18:10:48 CEST 2010


Revision: 3181
          https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=3181
Author:   william
Date:     2010-05-11 18:10:48 +0200 (Tue, 11 May 2010)
Log Message:
-----------
write svn commands

Modified Paths:
--------------
    pro/scripts/modules/finals_config.py

Modified: pro/scripts/modules/finals_config.py
===================================================================
--- pro/scripts/modules/finals_config.py	2010-05-11 16:07:53 UTC (rev 3180)
+++ pro/scripts/modules/finals_config.py	2010-05-11 16:10:48 UTC (rev 3181)
@@ -56,6 +56,9 @@
 
             print("    mkdir '%s'" % (os.path.dirname(cache_path_to)))
             print("    mv %s/%s* %s/" % (cache_path_from, point_cache.name, os.path.dirname(cache_path_to)))
+            print("    svn add %s" % (os.path.dirname(cache_path_to)))
+            print("    svn commit %s -m \"hair sim auto message\"" % (os.path.dirname(cache_path_to)))
+            print("")
 
 
     base_dir, base_name = os.path.split(bpy.data.filename)
@@ -157,20 +160,18 @@
             psys.point_cache.step = 5   
 
         elif base_name.startswith("02.c"):
-            psys.cloth.settings.pin_stiffness = 30
-            psys.cloth.settings.mass = 0.2 # was 0.01
-            psys.cloth.settings.bending_stiffness = 6
+            psys.cloth.settings.quality = 30
 
-            psys.cloth.settings.internal_friction = 0.985
-            psys.cloth.settings.collider_friction = 0.993
-            psys.cloth.settings.flexibility_damping = 0.5
+            psys.cloth.settings.structural_stiffness= 18.0 # good overall value to control stiffness, 12 is needed for running up stairs
+            psys.cloth.settings.pin_stiffness = 0.5
+            psys.cloth.settings.bending_stiffness = 80.0
 
-            psys.cloth.settings.spring_damping = 36.0
-            psys.cloth.settings.air_damping = 2
+            psys.cloth.settings.spring_damping = 30.0 # doesnt seem to do much
+            psys.cloth.settings.air_damping = 1 # good way to dampen hair
 
-            psys.cloth.settings.quality = 10
-            psys.point_cache.step = 5 
-        
+            psys.cloth.settings.mass = 0.015 # was 0.01
+            psys.cloth.settings.internal_friction = 0.1 # 0.9 makes hair too symmatrical
+
         elif base_name.startswith("02_d"):
             psys.cloth.settings.pin_stiffness = 0.1
             psys.cloth.settings.mass = 0.6 # was 0.01



More information about the Durian-svn mailing list