[Durian-svn] [2601] added option to disable cloth, "cloth=False"

pablo institute at blender.org
Wed Apr 28 22:55:23 CEST 2010


Revision: 2601
          https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=2601
Author:   pablo
Date:     2010-04-28 22:55:23 +0200 (Wed, 28 Apr 2010)
Log Message:
-----------
added option to disable cloth, "cloth=False"

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

Modified: pro/scripts/modules/finals_config.py
===================================================================
--- pro/scripts/modules/finals_config.py	2010-04-28 20:52:28 UTC (rev 2600)
+++ pro/scripts/modules/finals_config.py	2010-04-28 20:55:23 UTC (rev 2601)
@@ -9,7 +9,7 @@
 import os
 
 
-def setup(baked=False, pre_roll=40, sim=True, collisions=False, mindis=0.002):
+def setup(baked=False, pre_roll=40, sim=True, cloth=False, collisions=False, mindis=0.002):
     
     def replace_group(group_name, groups_from):
         group = bpy.data.groups[group_name]
@@ -137,11 +137,11 @@
             psys.cloth.settings.mass = 0.1 # was 0.01
 
         elif base_name.startswith("04.2i"):
-            psys.cloth.settings.pin_stiffness = 0.22
-            psys.cloth.settings.quality = 50
+            psys.cloth.settings.pin_stiffness = 0.82
+            psys.cloth.settings.quality = 25
             psys.cloth.settings.bending_stiffness = 20.0
-            psys.cloth.settings.spring_damping = 40.0
-            psys.cloth.settings.air_damping = 2.0
+            psys.cloth.settings.spring_damping = 80.0
+            psys.cloth.settings.air_damping = 20.0
             psys.cloth.settings.mass = 0.1
 
         elif base_name.startswith("05.8b"):
@@ -162,7 +162,7 @@
 
         if not baked:
             cache_path_from, cache_path_to = pointcache_dirs(psys.point_cache)
-            print("finals_config.py: configuring sintel's hair, (NEEDS BACKING)")
+            print("finals_config.py: configuring sintel's haicloth=False, r, (NEEDS BACKING)")
 
             print("    mkdir '%s'" % (os.path.dirname(cache_path_to)))
             print("    mv %s/* %s/" % (cache_path_from, os.path.dirname(cache_path_to)))
@@ -217,12 +217,13 @@
     # ---- Dragon Baby ---- #
     # change GEO-wing_sim
     for obj in [obj for obj_name, obj in object_items if obj_name == "GEO-babydragon"]:
-        obj.modifiers[0].render = True
-        obj.modifiers[0].realtime = True
+	if cloth:
+            obj.modifiers[0].render = cloth
+            obj.modifiers[0].realtime = cloth
+
+            obj.modifiers[1].multi_modifier = cloth
+            obj.modifiers[1].vertex_group = "wing_sim"
     
-        obj.modifiers[1].multi_modifier = True
-        obj.modifiers[1].vertex_group = "wing_sim"
-    
     for obj in [obj for obj_name, obj in object_items if obj_name == "GEO-wing_sim"]:
         mod = obj.modifiers["Cloth"]
         pointcache_generic_setup(mod.point_cache, frame_start, frame_end)



More information about the Durian-svn mailing list