[Durian-svn] [4103] updates for baking presets on the farm
campbell
institute at blender.org
Sat May 29 21:14:25 CEST 2010
Revision: 4103
https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=4103
Author: campbell
Date: 2010-05-29 21:14:25 +0200 (Sat, 29 May 2010)
Log Message:
-----------
updates for baking presets on the farm
Modified Paths:
--------------
pro/scripts/modules/finals_config.py
pro/scripts/utilities/batch_bake.py
Modified: pro/scripts/modules/finals_config.py
===================================================================
--- pro/scripts/modules/finals_config.py 2010-05-29 19:09:26 UTC (rev 4102)
+++ pro/scripts/modules/finals_config.py 2010-05-29 19:14:25 UTC (rev 4103)
@@ -104,11 +104,10 @@
# --- setup sintel/dragon/adult
-def setup_sintel(baked=False, sim=True, pre_roll=40, collisions=False, mindis=0.002):
+def setup_sintel(baked=False, sim=True, pre_roll=40, collisions=True, mindis=0.002):
base_dir, base_name, frame_start, frame_end, object_items = scene_info()
-
# ---- Sintel ---- #
# replace_group("sintel", ("sintel_simple", "sintel_simple_winter"))
@@ -145,7 +144,6 @@
psys.settings.child_nbr = 40
psys.settings.draw_step = 3
psys.settings.mass = 0.005 # was 0.01
- psys.cloth.settings.pin_stiffness = 0.0
coll = psys.cloth.collision_settings
if collisions:
@@ -168,13 +166,11 @@
f.close()
def sintal_preset_hair_run():
+
'''
When changing settings here BE VERY CAREFUL!
since its re-used
'''
- # pretty nice for running. use as reference
- psys.cloth.settings.quality = 30
-
psys.cloth.settings.structural_stiffness= 12.0 # good overall value to control stiffness, 12 is needed for running up stairs
psys.cloth.settings.pin_stiffness = 0.5 # above 0.6 can become unstable!
psys.cloth.settings.bending_stiffness = 80.0
@@ -186,160 +182,170 @@
psys.cloth.settings.internal_friction = 0.1 # 0.9 makes hair too symmatrical
# one setting to rule them all!
- sintal_preset_hair_run()
+ # sintal_preset_hair_run()
- """
- example of loading a hair weight file:
-
- load_hair_weights("02_d.hairw")
-
- this will load 02_d.hairw, which must be in the same
- directory as the shot (e.g. scenes/02-whatever/).
- """
- '''
- # Per Blend Sintel Stuff...
- if base_name.startswith("02.b"):
- psys.cloth.settings.pin_stiffness = 30
- psys.cloth.settings.mass = 0.2 # was 0.01
- psys.cloth.settings.bending_stiffness = 6
+ def sintal_preset_0():
+ psys.cloth.settings.structural_stiffness= 34.842172
+ psys.cloth.settings.pin_stiffness= 0.325494
+ psys.cloth.settings.bending_stiffness= 6.181651
+ psys.cloth.settings.spring_damping= 10.728032
+ psys.cloth.settings.air_damping= 0.106006
+ psys.cloth.settings.mass= 0.043183
+ psys.cloth.settings.internal_friction= 0.830935
- psys.cloth.settings.internal_friction = 0.985
- psys.cloth.settings.collider_friction = 0.993
- psys.cloth.settings.flexibility_damping = 0.5
+ def sintal_preset_1():
+ psys.cloth.settings.structural_stiffness= 4.247962
+ psys.cloth.settings.pin_stiffness= 0.314050
+ psys.cloth.settings.bending_stiffness= 67.461915
+ psys.cloth.settings.spring_damping= 27.600531
+ psys.cloth.settings.air_damping= 0.899747
+ psys.cloth.settings.mass= 0.095244
+ psys.cloth.settings.internal_friction= 0.565265
- psys.cloth.settings.spring_damping = 36.0
- psys.cloth.settings.air_damping = 2
+ def sintal_preset_2():
+ psys.cloth.settings.structural_stiffness= 22.175351
+ psys.cloth.settings.pin_stiffness= 0.524531
+ psys.cloth.settings.bending_stiffness= 58.052639
+ psys.cloth.settings.spring_damping= 37.233306
+ psys.cloth.settings.air_damping= 1.725317
+ psys.cloth.settings.mass= 0.081011
+ psys.cloth.settings.internal_friction= 0.809613
- psys.cloth.settings.quality = 10
- psys.point_cache.step = 5
+ def sintal_preset_3():
+ psys.cloth.settings.structural_stiffness= 10.235273
+ psys.cloth.settings.pin_stiffness= 0.760074
+ psys.cloth.settings.bending_stiffness= 154.354119
+ psys.cloth.settings.spring_damping= 4.448911
+ psys.cloth.settings.air_damping= 0.343445
+ psys.cloth.settings.mass= 0.014469
+ psys.cloth.settings.internal_friction= 0.352974
- elif base_name.startswith("02.c"):
- psys.cloth.settings.quality = 30
+ def sintal_preset_4():
+ psys.cloth.settings.structural_stiffness= 35.495883
+ psys.cloth.settings.pin_stiffness= 0.471697
+ psys.cloth.settings.bending_stiffness= 92.088022
+ psys.cloth.settings.spring_damping= 5.535391
+ psys.cloth.settings.air_damping= 2.019423
+ psys.cloth.settings.mass= 0.042530
+ psys.cloth.settings.internal_friction= 0.883838
- 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
+ def sintal_preset_5():
+ psys.cloth.settings.structural_stiffness= 4.426312
+ psys.cloth.settings.pin_stiffness= 0.562971
+ psys.cloth.settings.bending_stiffness= 127.978040
+ psys.cloth.settings.spring_damping= 0.961237
+ psys.cloth.settings.air_damping= 4.121240
+ psys.cloth.settings.mass= 0.007018
+ psys.cloth.settings.internal_friction= 0.726404
- psys.cloth.settings.spring_damping = 30.0 # doesnt seem to do much
- psys.cloth.settings.air_damping = 1 # good way to dampen hair
+ def sintal_preset_6():
+ psys.cloth.settings.structural_stiffness= 8.235972
+ psys.cloth.settings.pin_stiffness= 0.530574
+ psys.cloth.settings.bending_stiffness= 70.926150
+ psys.cloth.settings.spring_damping= 34.262581
+ psys.cloth.settings.air_damping= 0.960725
+ psys.cloth.settings.mass= 0.056708
+ psys.cloth.settings.internal_friction= 0.469111
- 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"):
+ def sintal_preset_7():
+ psys.cloth.settings.structural_stiffness= 14.000082
+ psys.cloth.settings.pin_stiffness= 0.782709
+ psys.cloth.settings.bending_stiffness= 166.839052
+ psys.cloth.settings.spring_damping= 5.493323
+ psys.cloth.settings.air_damping= 4.890513
+ psys.cloth.settings.mass= 0.063491
+ psys.cloth.settings.internal_friction= 0.603489
- psys.cloth.settings.structural_stiffness= 30
- psys.cloth.settings.pin_stiffness = 0.85
- psys.cloth.settings.bending_stiffness = 30
- psys.cloth.settings.quality = 20
- psys.cloth.settings.spring_damping = 40
- psys.cloth.settings.air_damping = 1.0
- psys.cloth.settings.mass = 0.01 # was 0.01
+ def sintal_preset_8():
+ psys.cloth.settings.structural_stiffness= 37.684594
+ psys.cloth.settings.pin_stiffness= 1.330531
+ psys.cloth.settings.bending_stiffness= 18.253555
+ psys.cloth.settings.spring_damping= 0.257134
+ psys.cloth.settings.air_damping= 0.657556
+ psys.cloth.settings.mass= 0.028089
+ psys.cloth.settings.internal_friction= 0.043132
- elif base_name.startswith("02.e"):
+ def sintal_preset_9():
+ psys.cloth.settings.structural_stiffness= 4.590340
+ psys.cloth.settings.pin_stiffness= 1.022655
+ psys.cloth.settings.bending_stiffness= 48.396537
+ psys.cloth.settings.spring_damping= 3.357247
+ psys.cloth.settings.air_damping= 4.480608
+ psys.cloth.settings.mass= 0.059139
+ psys.cloth.settings.internal_friction= 0.194198
- psys.cloth.settings.structural_stiffness= 30
- psys.cloth.settings.pin_stiffness = 1
- psys.cloth.settings.bending_stiffness = 30
- psys.cloth.settings.quality = 20
- psys.cloth.settings.spring_damping = 10
- psys.cloth.settings.air_damping = 1.0
- psys.cloth.settings.mass = 0.01 # was 0.01
- psys.point_cache.step = 7
-
- elif base_name.startswith("02.f"):
- sintal_preset_hair_run()
- psys.cloth.settings.pin_stiffness = 0.8
+ def sintal_preset_10():
+ psys.cloth.settings.structural_stiffness= 3.254883
+ psys.cloth.settings.pin_stiffness= 0.845415
+ psys.cloth.settings.bending_stiffness= 160.195551
+ psys.cloth.settings.spring_damping= 27.294362
+ psys.cloth.settings.air_damping= 4.721024
+ psys.cloth.settings.mass= 0.041178
+ psys.cloth.settings.internal_friction= 0.626918
- psys.cloth.settings.structural_stiffness= 12.0 # good overall value to control stiffness, 12 is needed for running up stairs
- psys.cloth.settings.pin_stiffness = 1.2
- psys.cloth.settings.bending_stiffness = 30.0
+ def sintal_preset_11():
+ psys.cloth.settings.structural_stiffness= 30.642813
+ psys.cloth.settings.pin_stiffness= 0.145390
+ psys.cloth.settings.bending_stiffness= 47.278698
+ psys.cloth.settings.spring_damping= 22.367766
+ psys.cloth.settings.air_damping= 2.483430
+ psys.cloth.settings.mass= 0.091909
+ psys.cloth.settings.internal_friction= 0.450381
- psys.cloth.settings.spring_damping = 30.0 # doesnt seem to do much
- psys.cloth.settings.air_damping = 2.5 # good way to dampen hair
+ def sintal_preset_12():
+ psys.cloth.settings.structural_stiffness= 20.817025
+ psys.cloth.settings.pin_stiffness= 0.151220
+ psys.cloth.settings.bending_stiffness= 44.216257
+ psys.cloth.settings.spring_damping= 34.830249
+ psys.cloth.settings.air_damping= 1.701049
+ psys.cloth.settings.mass= 0.050590
@@ Diff output truncated at 10240 characters. @@
More information about the Durian-svn
mailing list