[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25436] trunk/blender/release/scripts: rescale metarig types to roughly match 1.0 == 1m for body parts, also fix py error with bone UI

Campbell Barton ideasman42 at gmail.com
Thu Dec 17 14:17:24 CET 2009


Revision: 25436
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25436
Author:   campbellbarton
Date:     2009-12-17 14:17:24 +0100 (Thu, 17 Dec 2009)

Log Message:
-----------
rescale metarig types to roughly match 1.0 == 1m for body parts, also fix py error with bone UI

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/rigify/arm_biped_generic.py
    trunk/blender/release/scripts/modules/rigify/finger_curl.py
    trunk/blender/release/scripts/modules/rigify/leg_biped_generic.py
    trunk/blender/release/scripts/modules/rigify/leg_quadruped_generic.py
    trunk/blender/release/scripts/modules/rigify/neck_flex.py
    trunk/blender/release/scripts/modules/rigify/palm_curl.py
    trunk/blender/release/scripts/modules/rigify/spine_pivot_flex.py
    trunk/blender/release/scripts/ui/properties_data_bone.py

Modified: trunk/blender/release/scripts/modules/rigify/arm_biped_generic.py
===================================================================
--- trunk/blender/release/scripts/modules/rigify/arm_biped_generic.py	2009-12-17 13:14:29 UTC (rev 25435)
+++ trunk/blender/release/scripts/modules/rigify/arm_biped_generic.py	2009-12-17 13:17:24 UTC (rev 25436)
@@ -34,25 +34,25 @@
     obj = bpy.context.active_object
     arm = obj.data
     bone = arm.edit_bones.new('shoulder')
-    bone.head[:] = 0.0000, -0.4515, 0.0000
-    bone.tail[:] = 1.0000, -0.0794, 0.3540
+    bone.head[:] = 0.0000, -0.0425, 0.0000
+    bone.tail[:] = 0.0942, -0.0075, 0.0333
     bone.roll = -0.2227
     bone.connected = False
     bone = arm.edit_bones.new('upper_arm')
-    bone.head[:] = 1.1319, -0.0808, -0.0101
-    bone.tail[:] = 3.0319, 0.2191, -0.1101
+    bone.head[:] = 0.1066, -0.0076, -0.0010
+    bone.tail[:] = 0.2855, 0.0206, -0.0104
     bone.roll = 1.6152
     bone.connected = False
     bone.parent = arm.edit_bones['shoulder']
     bone = arm.edit_bones.new('forearm')
-    bone.head[:] = 3.0319, 0.2191, -0.1101
-    bone.tail[:] = 4.8319, -0.0809, -0.0242
+    bone.head[:] = 0.2855, 0.0206, -0.0104
+    bone.tail[:] = 0.4550, -0.0076, -0.0023
     bone.roll = 1.5153
     bone.connected = True
     bone.parent = arm.edit_bones['upper_arm']
     bone = arm.edit_bones.new('hand')
-    bone.head[:] = 4.8319, -0.0809, -0.0242
-    bone.tail[:] = 5.7590, -0.1553, -0.1392
+    bone.head[:] = 0.4550, -0.0076, -0.0023
+    bone.tail[:] = 0.5423, -0.0146, -0.0131
     bone.roll = -3.0083
     bone.connected = True
     bone.parent = arm.edit_bones['forearm']

Modified: trunk/blender/release/scripts/modules/rigify/finger_curl.py
===================================================================
--- trunk/blender/release/scripts/modules/rigify/finger_curl.py	2009-12-17 13:14:29 UTC (rev 25435)
+++ trunk/blender/release/scripts/modules/rigify/finger_curl.py	2009-12-17 13:17:24 UTC (rev 25436)
@@ -28,23 +28,24 @@
 
 
 def metarig_template():
+    # generated by rigify.write_meta_rig
     bpy.ops.object.mode_set(mode='EDIT')
     obj = bpy.context.active_object
     arm = obj.data
     bone = arm.edit_bones.new('finger.01')
     bone.head[:] = 0.0000, 0.0000, 0.0000
-    bone.tail[:] = 0.8788, -0.4584, -0.1327
+    bone.tail[:] = 0.0353, -0.0184, -0.0053
     bone.roll = -2.8722
     bone.connected = False
     bone = arm.edit_bones.new('finger.02')
-    bone.head[:] = 0.8788, -0.4584, -0.1327
-    bone.tail[:] = 1.7483, -0.9059, -0.3643
+    bone.head[:] = 0.0353, -0.0184, -0.0053
+    bone.tail[:] = 0.0702, -0.0364, -0.0146
     bone.roll = -2.7099
     bone.connected = True
     bone.parent = arm.edit_bones['finger.01']
     bone = arm.edit_bones.new('finger.03')
-    bone.head[:] = 1.7483, -0.9059, -0.3643
-    bone.tail[:] = 2.2478, -1.1483, -0.7408
+    bone.head[:] = 0.0702, -0.0364, -0.0146
+    bone.tail[:] = 0.0903, -0.0461, -0.0298
     bone.roll = -2.1709
     bone.connected = True
     bone.parent = arm.edit_bones['finger.02']

Modified: trunk/blender/release/scripts/modules/rigify/leg_biped_generic.py
===================================================================
--- trunk/blender/release/scripts/modules/rigify/leg_biped_generic.py	2009-12-17 13:14:29 UTC (rev 25435)
+++ trunk/blender/release/scripts/modules/rigify/leg_biped_generic.py	2009-12-17 13:17:24 UTC (rev 25436)
@@ -33,36 +33,36 @@
     arm = obj.data
     bone = arm.edit_bones.new('hips')
     bone.head[:] = 0.0000, 0.0000, 0.0000
-    bone.tail[:] = 0.0000, 0.0000, 1.0000
+    bone.tail[:] = 0.0000, 0.0000, 0.2506
     bone.roll = 0.0000
     bone.connected = False
     bone = arm.edit_bones.new('thigh')
-    bone.head[:] = 0.5000, 0.0000, 0.0000
-    bone.tail[:] = 0.3000, -0.1000, -1.7000
+    bone.head[:] = 0.1253, 0.0000, -0.0000
+    bone.tail[:] = 0.0752, -0.0251, -0.4260
     bone.roll = 0.1171
     bone.connected = False
     bone.parent = arm.edit_bones['hips']
     bone = arm.edit_bones.new('shin')
-    bone.head[:] = 0.3000, -0.1000, -1.7000
-    bone.tail[:] = 0.3000, 0.0000, -3.5000
-    bone.roll = -0.0000
+    bone.head[:] = 0.0752, -0.0251, -0.4260
+    bone.tail[:] = 0.0752, 0.0000, -0.8771
+    bone.roll = 0.0000
     bone.connected = True
     bone.parent = arm.edit_bones['thigh']
     bone = arm.edit_bones.new('foot')
-    bone.head[:] = 0.3000, 0.0000, -3.5000
-    bone.tail[:] = 0.4042, -0.5909, -3.9000
+    bone.head[:] = 0.0752, 0.0000, -0.8771
+    bone.tail[:] = 0.1013, -0.1481, -0.9773
     bone.roll = -0.4662
     bone.connected = True
     bone.parent = arm.edit_bones['shin']
     bone = arm.edit_bones.new('toe')
-    bone.head[:] = 0.4042, -0.5909, -3.9000
-    bone.tail[:] = 0.4391, -0.9894, -3.9000
-    bone.roll = -3.1416
+    bone.head[:] = 0.1013, -0.1481, -0.9773
+    bone.tail[:] = 0.1100, -0.2479, -0.9773
+    bone.roll = 3.1416
     bone.connected = True
     bone.parent = arm.edit_bones['foot']
     bone = arm.edit_bones.new('heel')
-    bone.head[:] = 0.2600, 0.2000, -4.0000
-    bone.tail[:] = 0.3700, -0.4000, -4.0000
+    bone.head[:] = 0.0652, 0.0501, -1.0024
+    bone.tail[:] = 0.0927, -0.1002, -1.0024
     bone.roll = 0.0000
     bone.connected = False
     bone.parent = arm.edit_bones['foot']

Modified: trunk/blender/release/scripts/modules/rigify/leg_quadruped_generic.py
===================================================================
--- trunk/blender/release/scripts/modules/rigify/leg_quadruped_generic.py	2009-12-17 13:14:29 UTC (rev 25435)
+++ trunk/blender/release/scripts/modules/rigify/leg_quadruped_generic.py	2009-12-17 13:17:24 UTC (rev 25436)
@@ -33,32 +33,32 @@
     obj = bpy.context.active_object
     arm = obj.data
     bone = arm.edit_bones.new('body')
-    bone.head[:] = -0.3000, -1.0000, 0.0000
-    bone.tail[:] = -0.3000, -1.0000, 1.0000
+    bone.head[:] = -0.0728, -0.2427, 0.0000
+    bone.tail[:] = -0.0728, -0.2427, 0.2427
     bone.roll = 0.0000
     bone.connected = False
     bone = arm.edit_bones.new('thigh')
     bone.head[:] = 0.0000, 0.0000, -0.0000
-    bone.tail[:] = 0.3351, -0.8690, -1.3903
+    bone.tail[:] = 0.0813, -0.2109, -0.3374
     bone.roll = -0.4656
     bone.connected = False
     bone.parent = arm.edit_bones['body']
     bone = arm.edit_bones.new('shin')
-    bone.head[:] = 0.3351, -0.8690, -1.3903
-    bone.tail[:] = 0.2943, -0.0179, -2.4026
+    bone.head[:] = 0.0813, -0.2109, -0.3374
+    bone.tail[:] = 0.0714, -0.0043, -0.5830
     bone.roll = -0.2024
     bone.connected = True
     bone.parent = arm.edit_bones['thigh']
     bone = arm.edit_bones.new('foot')
-    bone.head[:] = 0.2943, -0.0179, -2.4026
-    bone.tail[:] = 0.3830, -0.1995, -3.1531
+    bone.head[:] = 0.0714, -0.0043, -0.5830
+    bone.tail[:] = 0.0929, -0.0484, -0.7652
     bone.roll = -0.3766
     bone.connected = True
     bone.parent = arm.edit_bones['shin']
     bone = arm.edit_bones.new('toe')
-    bone.head[:] = 0.3830, -0.1995, -3.1531
-    bone.tail[:] = 0.4724, -0.5126, -3.1531
-    bone.roll = 0.0000
+    bone.head[:] = 0.0929, -0.0484, -0.7652
+    bone.tail[:] = 0.1146, -0.1244, -0.7652
+    bone.roll = -0.0000
     bone.connected = True
     bone.parent = arm.edit_bones['foot']
 

Modified: trunk/blender/release/scripts/modules/rigify/neck_flex.py
===================================================================
--- trunk/blender/release/scripts/modules/rigify/neck_flex.py	2009-12-17 13:14:29 UTC (rev 25435)
+++ trunk/blender/release/scripts/modules/rigify/neck_flex.py	2009-12-17 13:17:24 UTC (rev 25436)
@@ -33,43 +33,43 @@
     obj = bpy.context.active_object
     arm = obj.data
     bone = arm.edit_bones.new('body')
-    bone.head[:] = -0.0000, -0.2771, -1.3345
-    bone.tail[:] = -0.0000, -0.1708, -0.1984
+    bone.head[:] = 0.0000, -0.0276, -0.1328
+    bone.tail[:] = 0.0000, -0.0170, -0.0197
     bone.roll = 0.0000
     bone.connected = False
     bone = arm.edit_bones.new('head')
-    bone.head[:] = -0.0000, -0.1708, -0.1984
-    bone.tail[:] = 0.0000, 0.7292, 1.3604
+    bone.head[:] = 0.0000, -0.0170, -0.0197
+    bone.tail[:] = 0.0000, 0.0726, 0.1354
     bone.roll = 0.0000
     bone.connected = True
     bone.parent = arm.edit_bones['body']
     bone = arm.edit_bones.new('neck.01')
-    bone.head[:] = 0.0000, -0.1708, -0.1984
-    bone.tail[:] = -0.0000, -0.0994, 0.1470
-    bone.roll = -0.0000
+    bone.head[:] = 0.0000, -0.0170, -0.0197
+    bone.tail[:] = 0.0000, -0.0099, 0.0146
+    bone.roll = 0.0000
     bone.connected = False
     bone.parent = arm.edit_bones['head']
     bone = arm.edit_bones.new('neck.02')
-    bone.head[:] = -0.0000, -0.0994, 0.1470
-    bone.tail[:] = 0.0000, -0.2428, 0.5162
-    bone.roll = -0.0000
+    bone.head[:] = 0.0000, -0.0099, 0.0146
+    bone.tail[:] = 0.0000, -0.0242, 0.0514
+    bone.roll = 0.0000
     bone.connected = True
     bone.parent = arm.edit_bones['neck.01']
     bone = arm.edit_bones.new('neck.03')
-    bone.head[:] = 0.0000, -0.2428, 0.5162
-    bone.tail[:] = 0.0000, -0.4190, 0.8722
-    bone.roll = -0.0000
+    bone.head[:] = 0.0000, -0.0242, 0.0514
+    bone.tail[:] = 0.0000, -0.0417, 0.0868
+    bone.roll = 0.0000
     bone.connected = True
     bone.parent = arm.edit_bones['neck.02']
     bone = arm.edit_bones.new('neck.04')
-    bone.head[:] = 0.0000, -0.4190, 0.8722
-    bone.tail[:] = 0.0000, -0.5111, 1.1956
+    bone.head[:] = 0.0000, -0.0417, 0.0868
+    bone.tail[:] = 0.0000, -0.0509, 0.1190
     bone.roll = 0.0000
     bone.connected = True
     bone.parent = arm.edit_bones['neck.03']
     bone = arm.edit_bones.new('neck.05')
-    bone.head[:] = 0.0000, -0.5111, 1.1956
-    bone.tail[:] = 0.0000, -0.5391, 1.6081
+    bone.head[:] = 0.0000, -0.0509, 0.1190
+    bone.tail[:] = 0.0000, -0.0537, 0.1600
     bone.roll = 0.0000
     bone.connected = True
     bone.parent = arm.edit_bones['neck.04']

Modified: trunk/blender/release/scripts/modules/rigify/palm_curl.py
===================================================================
--- trunk/blender/release/scripts/modules/rigify/palm_curl.py	2009-12-17 13:14:29 UTC (rev 25435)
+++ trunk/blender/release/scripts/modules/rigify/palm_curl.py	2009-12-17 13:17:24 UTC (rev 25436)
@@ -33,43 +33,43 @@
     obj = bpy.context.active_object
     arm = obj.data
     bone = arm.edit_bones.new('hand')
-    bone.head[:] = 0.0082, -1.2492, 0.0000
-    bone.tail[:] = 0.0423, -0.4150, 0.0000
+    bone.head[:] = 0.0004, -0.0629, 0.0000

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list