rename rig types not to have generic in the name (Cessens decission)
authorCampbell Barton <ideasman42@gmail.com>
Sun, 10 Jan 2010 18:59:32 +0000 (18:59 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 10 Jan 2010 18:59:32 +0000 (18:59 +0000)
release/scripts/modules/rigify/arm_biped.py [moved from release/scripts/modules/rigify/arm_biped_generic.py with 99% similarity]
release/scripts/modules/rigify/leg_biped.py [moved from release/scripts/modules/rigify/leg_biped_generic.py with 99% similarity]
release/scripts/modules/rigify/leg_quadruped.py [moved from release/scripts/modules/rigify/leg_quadruped_generic.py with 99% similarity]
release/scripts/op/add_armature_human.py

similarity index 99%
rename from release/scripts/modules/rigify/arm_biped_generic.py
rename to release/scripts/modules/rigify/arm_biped.py
index 52e6c3e3355083f72ce82119a8d2243fe657d739..26b56164b370f9ebccfe2cca52acdabdf91e6eec 100644 (file)
@@ -59,7 +59,7 @@ def metarig_template():
 
     bpy.ops.object.mode_set(mode='OBJECT')
     pbone = obj.pose.bones['upper_arm']
-    pbone['type'] = 'arm_biped_generic'
+    pbone['type'] = 'arm_biped'
 
 
 def metarig_definition(obj, orig_bone_name):
similarity index 99%
rename from release/scripts/modules/rigify/leg_biped_generic.py
rename to release/scripts/modules/rigify/leg_biped.py
index d0fbba83a0ce60766f312df31db58966a8458af9..70be980d7b2a3975d0ad3863cb3c4a37d88a4889 100644 (file)
@@ -69,7 +69,7 @@ def metarig_template():
 
     bpy.ops.object.mode_set(mode='OBJECT')
     pbone = obj.pose.bones['thigh']
-    pbone['type'] = 'leg_biped_generic'
+    pbone['type'] = 'leg_biped'
 
 
 def metarig_definition(obj, orig_bone_name):
similarity index 99%
rename from release/scripts/modules/rigify/leg_quadruped_generic.py
rename to release/scripts/modules/rigify/leg_quadruped.py
index 99a0995557222a1669a66a4d63746475d81fe9b8..49a404aef337cee31f484455dfca432d1800db2a 100644 (file)
@@ -63,7 +63,7 @@ def metarig_template():
 
     bpy.ops.object.mode_set(mode='OBJECT')
     pbone = obj.pose.bones['thigh']
-    pbone['type'] = 'leg_quadruped_generic'
+    pbone['type'] = 'leg_quadruped'
 
 
 def metarig_definition(obj, orig_bone_name):
index afc3c8bd0656c861016bac3e4462e37f54d89336..573c894350b183f335b8b852a9fd21a78cde8878 100644 (file)
@@ -29,17 +29,11 @@ def metarig_template():
     bpy.ops.object.mode_set(mode='EDIT')
     obj = bpy.context.active_object
     arm = obj.data
-    bone = arm.edit_bones.new('root')
-    bone.head[:] = 0.0000, 0.0000, 0.0000
-    bone.tail[:] = 0.0000, 0.4000, 0.0000
-    bone.roll = 0.0000
-    bone.connected = False
     bone = arm.edit_bones.new('pelvis')
     bone.head[:] = -0.0000, -0.0145, 1.1263
     bone.tail[:] = -0.0000, -0.0145, 0.9563
     bone.roll = 3.1416
     bone.connected = False
-    bone.parent = arm.edit_bones['root']
     bone = arm.edit_bones.new('torso')
     bone.head[:] = -0.0000, -0.0145, 1.1263
     bone.tail[:] = -0.0000, -0.0145, 1.2863
@@ -462,10 +456,6 @@ def metarig_template():
     bone.parent = arm.edit_bones['finger_index.02.R']
 
     bpy.ops.object.mode_set(mode='OBJECT')
-    pbone = obj.pose.bones['root']
-    pbone['type'] = 'root'
-    pbone = obj.pose.bones['root']
-    pbone['root.layer'] = 16
     pbone = obj.pose.bones['torso']
     pbone['type'] = 'spine_pivot_flex'
     pbone = obj.pose.bones['torso']
@@ -473,13 +463,13 @@ def metarig_template():
     pbone = obj.pose.bones['torso']
     pbone['spine_pivot_flex.layer_extra'] = 2
     pbone = obj.pose.bones['thigh.L']
-    pbone['type'] = 'leg_biped_generic'
+    pbone['type'] = 'leg_biped'
     pbone = obj.pose.bones['thigh.L']
     pbone['leg_biped_generic.layer_ik'] = 12
     pbone = obj.pose.bones['thigh.L']
     pbone['leg_biped_generic.layer_fk'] = 11
     pbone = obj.pose.bones['thigh.R']
-    pbone['type'] = 'leg_biped_generic'
+    pbone['type'] = 'leg_biped'
     pbone = obj.pose.bones['thigh.R']
     pbone['leg_biped_generic.layer_ik'] = 14
     pbone = obj.pose.bones['thigh.R']
@@ -507,7 +497,7 @@ def metarig_template():
     pbone = obj.pose.bones['DLT-upper_arm.R']
     pbone['type'] = 'delta'
     pbone = obj.pose.bones['upper_arm.L']
-    pbone['type'] = 'arm_biped_generic'
+    pbone['type'] = 'arm_biped'
     pbone = obj.pose.bones['upper_arm.L']
     pbone['arm_biped_generic.elbow_parent'] = 'spine.04'
     pbone = obj.pose.bones['upper_arm.L']
@@ -515,7 +505,7 @@ def metarig_template():
     pbone = obj.pose.bones['upper_arm.L']
     pbone['arm_biped_generic.layer_ik'] = 8
     pbone = obj.pose.bones['upper_arm.R']
-    pbone['type'] = 'arm_biped_generic'
+    pbone['type'] = 'arm_biped'
     pbone = obj.pose.bones['upper_arm.R']
     pbone['arm_biped_generic.layer_fk'] = 9
     pbone = obj.pose.bones['upper_arm.R']