[Bf-extensions-cvs] [c35610f] master: Rigify: new additions from PitchiPoy Animation Productions.
Nathan Vegdahl
noreply at git.blender.org
Fri Sep 26 05:43:19 CEST 2014
Commit: c35610f163a05f81951a2b069306b675294f4cb3
Author: Nathan Vegdahl
Date: Thu Sep 25 20:24:03 2014 -0700
Branches: master
https://developer.blender.org/rBAc35610f163a05f81951a2b069306b675294f4cb3
Rigify: new additions from PitchiPoy Animation Productions.
PitchiPoy Animation Productions is sharing its custom rig types
with the Blender community at large. The new rig types all start
with "pitchipoy." and are used in PitchiPoy's productions.
Of particular interest is a face rig type for auto-rigging faces.
Other rig types include:
- Tentacles
- Fingers
- Arms/Legs
- Spine/Torso
Many thanks to PitchiPoy for their hard work and for sharing this back!
===================================================================
M rigify/generate.py
M rigify/metarigs/human.py
A rigify/metarigs/pitchipoy_human.py
M rigify/rigs/biped/arm/__init__.py
M rigify/rigs/biped/arm/ik.py
M rigify/rigs/biped/leg/__init__.py
M rigify/rigs/biped/leg/ik.py
M rigify/rigs/biped/limb_common.py
A rigify/rigs/pitchipoy/__init__.py
A rigify/rigs/pitchipoy/limbs/__init__.py
A rigify/rigs/pitchipoy/limbs/arm.py
A rigify/rigs/pitchipoy/limbs/leg.py
A rigify/rigs/pitchipoy/limbs/limb_utils.py
A rigify/rigs/pitchipoy/limbs/paw.py
A rigify/rigs/pitchipoy/limbs/super_limb.py
A rigify/rigs/pitchipoy/limbs/ui.py
A rigify/rigs/pitchipoy/simple_tentacle.py
A rigify/rigs/pitchipoy/super_copy.py
A rigify/rigs/pitchipoy/super_face.py
A rigify/rigs/pitchipoy/super_finger.py
A rigify/rigs/pitchipoy/super_torso_turbo.py
A rigify/rigs/pitchipoy/super_widgets.py
A rigify/rigs/pitchipoy/tentacle.py
M rigify/ui.py
M rigify/utils.py
===================================================================
diff --git a/rigify/generate.py b/rigify/generate.py
index 5e9feaf..27ccf14 100644
--- a/rigify/generate.py
+++ b/rigify/generate.py
@@ -382,6 +382,7 @@ def generate_rig(context, metarig):
# Create list of layer name/row pairs
layer_layout = []
for l in metarig.data.rigify_layers:
+ print( l.name )
layer_layout += [(l.name, l.row)]
# Generate the UI script
diff --git a/rigify/metarigs/human.py b/rigify/metarigs/human.py
index b1675e3..7adc03d 100644
--- a/rigify/metarigs/human.py
+++ b/rigify/metarigs/human.py
@@ -20,7 +20,6 @@
import bpy
-
def create(obj):
# generated by rigify.utils.write_metarig
bpy.ops.object.mode_set(mode='EDIT')
diff --git a/rigify/metarigs/pitchipoy_human.py b/rigify/metarigs/pitchipoy_human.py
new file mode 100644
index 0000000..108a98b
--- /dev/null
+++ b/rigify/metarigs/pitchipoy_human.py
@@ -0,0 +1,2720 @@
+import bpy
+
+def create(obj):
+ # generated by rigify.utils.write_metarig
+ bpy.ops.object.mode_set(mode='EDIT')
+ arm = obj.data
+
+ for i in range(28):
+ arm.rigify_layers.add()
+
+ arm.rigify_layers[0].name = "Face"
+ arm.rigify_layers[0].row = 1
+ arm.rigify_layers[1].name = "Face (Primary)"
+ arm.rigify_layers[1].row = 2
+ arm.rigify_layers[2].name = "Face (Secondary)"
+ arm.rigify_layers[2].row = 2
+ arm.rigify_layers[3].name = "Torso"
+ arm.rigify_layers[3].row = 3
+ arm.rigify_layers[4].name = "Torso (Tweak)"
+ arm.rigify_layers[4].row = 4
+ arm.rigify_layers[5].name = "Fingers"
+ arm.rigify_layers[5].row = 5
+ arm.rigify_layers[6].name = "Fingers (Tweak)"
+ arm.rigify_layers[6].row = 6
+ arm.rigify_layers[7].name = "Arm.L (IK)"
+ arm.rigify_layers[7].row = 7
+ arm.rigify_layers[8].name = "Arm.L (FK)"
+ arm.rigify_layers[8].row = 8
+ arm.rigify_layers[9].name = "Arm.L (Tweak)"
+ arm.rigify_layers[9].row = 9
+ arm.rigify_layers[10].name = "Arm.R (IK)"
+ arm.rigify_layers[10].row = 7
+ arm.rigify_layers[11].name = "Arm.R (FK)"
+ arm.rigify_layers[11].row = 8
+ arm.rigify_layers[12].name = "Arm.R (Tweak)"
+ arm.rigify_layers[12].row = 9
+ arm.rigify_layers[13].name = "Leg.L (IK)"
+ arm.rigify_layers[13].row = 10
+ arm.rigify_layers[14].name = "Leg.L (FK)"
+ arm.rigify_layers[14].row = 11
+ arm.rigify_layers[15].name = "Leg.L (Tweak)"
+ arm.rigify_layers[15].row = 12
+ arm.rigify_layers[16].name = "Leg.R (IK)"
+ arm.rigify_layers[16].row = 10
+ arm.rigify_layers[17].name = "Leg.R (FK)"
+ arm.rigify_layers[17].row = 11
+ arm.rigify_layers[18].name = "Leg.R (Tweak)"
+ arm.rigify_layers[18].row = 12
+ arm.rigify_layers[19].name = ""
+ arm.rigify_layers[19].row = 1
+ arm.rigify_layers[20].name = ""
+ arm.rigify_layers[20].row = 1
+ arm.rigify_layers[21].name = ""
+ arm.rigify_layers[21].row = 1
+ arm.rigify_layers[22].name = ""
+ arm.rigify_layers[22].row = 1
+ arm.rigify_layers[23].name = ""
+ arm.rigify_layers[23].row = 1
+ arm.rigify_layers[24].name = ""
+ arm.rigify_layers[24].row = 1
+ arm.rigify_layers[25].name = ""
+ arm.rigify_layers[25].row = 1
+ arm.rigify_layers[26].name = ""
+ arm.rigify_layers[26].row = 1
+ arm.rigify_layers[27].name = ""
+ arm.rigify_layers[27].row = 1
+
+ bones = {}
+
+ bone = arm.edit_bones.new('spine')
+ bone.head[:] = 0.0000, 0.0552, 1.0099
+ bone.tail[:] = 0.0000, 0.0172, 1.1573
+ bone.roll = 0.0000
+ bone.use_connect = False
+ bones['spine'] = bone.name
+ bone = arm.edit_bones.new('spine.001')
+ bone.head[:] = 0.0000, 0.0172, 1.1573
+ bone.tail[:] = 0.0000, 0.0004, 1.2929
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['spine']]
+ bones['spine.001'] = bone.name
+ bone = arm.edit_bones.new('pelvis.L')
+ bone.head[:] = 0.0000, 0.0552, 1.0099
+ bone.tail[:] = 0.1112, -0.0451, 1.1533
+ bone.roll = -1.0756
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['spine']]
+ bones['pelvis.L'] = bone.name
+ bone = arm.edit_bones.new('pelvis.R')
+ bone.head[:] = -0.0000, 0.0552, 1.0099
+ bone.tail[:] = -0.1112, -0.0451, 1.1533
+ bone.roll = 1.0756
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['spine']]
+ bones['pelvis.R'] = bone.name
+ bone = arm.edit_bones.new('thigh.L')
+ bone.head[:] = 0.0980, 0.0124, 1.0720
+ bone.tail[:] = 0.0980, -0.0286, 0.5372
+ bone.roll = 0.0000
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['spine']]
+ bones['thigh.L'] = bone.name
+ bone = arm.edit_bones.new('thigh.R')
+ bone.head[:] = -0.0980, 0.0124, 1.0720
+ bone.tail[:] = -0.0980, -0.0286, 0.5372
+ bone.roll = 0.0000
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['spine']]
+ bones['thigh.R'] = bone.name
+ bone = arm.edit_bones.new('spine.002')
+ bone.head[:] = 0.0000, 0.0004, 1.2929
+ bone.tail[:] = 0.0000, 0.0059, 1.4657
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['spine.001']]
+ bones['spine.002'] = bone.name
+ bone = arm.edit_bones.new('shin.L')
+ bone.head[:] = 0.0980, -0.0286, 0.5372
+ bone.tail[:] = 0.0980, 0.0162, 0.0852
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['thigh.L']]
+ bones['shin.L'] = bone.name
+ bone = arm.edit_bones.new('shin.R')
+ bone.head[:] = -0.0980, -0.0286, 0.5372
+ bone.tail[:] = -0.0980, 0.0162, 0.0852
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['thigh.R']]
+ bones['shin.R'] = bone.name
+ bone = arm.edit_bones.new('spine.003')
+ bone.head[:] = 0.0000, 0.0059, 1.4657
+ bone.tail[:] = 0.0000, 0.0114, 1.6582
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['spine.002']]
+ bones['spine.003'] = bone.name
+ bone = arm.edit_bones.new('foot.L')
+ bone.head[:] = 0.0980, 0.0162, 0.0852
+ bone.tail[:] = 0.0980, -0.0934, 0.0167
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['shin.L']]
+ bones['foot.L'] = bone.name
+ bone = arm.edit_bones.new('foot.R')
+ bone.head[:] = -0.0980, 0.0162, 0.0852
+ bone.tail[:] = -0.0980, -0.0934, 0.0167
+ bone.roll = -0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['shin.R']]
+ bones['foot.R'] = bone.name
+ bone = arm.edit_bones.new('spine.004')
+ bone.head[:] = 0.0000, 0.0114, 1.6582
+ bone.tail[:] = 0.0000, -0.0067, 1.7197
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['spine.003']]
+ bones['spine.004'] = bone.name
+ bone = arm.edit_bones.new('shoulder.L')
+ bone.head[:] = 0.0183, -0.0684, 1.6051
+ bone.tail[:] = 0.1694, 0.0205, 1.6050
+ bone.roll = 0.0004
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['spine.003']]
+ bones['shoulder.L'] = bone.name
+ bone = arm.edit_bones.new('shoulder.R')
+ bone.head[:] = -0.0183, -0.0684, 1.6051
+ bone.tail[:] = -0.1694, 0.0205, 1.6050
+ bone.roll = -0.0004
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['spine.003']]
+ bones['shoulder.R'] = bone.name
+ bone = arm.edit_bones.new('breast.L')
+ bone.head[:] = 0.1184, 0.0485, 1.4596
+ bone.tail[:] = 0.1184, -0.0907, 1.4596
+ bone.roll = 0.0000
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['spine.003']]
+ bones['breast.L'] = bone.name
+ bone = arm.edit_bones.new('breast.R')
+ bone.head[:] = -0.1184, 0.0485, 1.4596
+ bone.tail[:] = -0.1184, -0.0907, 1.4596
+ bone.roll = -0.0000
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['spine.003']]
+ bones['breast.R'] = bone.name
+ bone = arm.edit_bones.new('toe.L')
+ bone.head[:] = 0.0980, -0.0934, 0.0167
+ bone.tail[:] = 0.0980, -0.1606, 0.0167
+ bone.roll = -0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['foot.L']]
+ bones['toe.L'] = bone.name
+ bone = arm.edit_bones.new('heel.02.L')
+ bone.head[:] = 0.0600, 0.0459, 0.0000
+ bone.tail[:] = 0.1400, 0.0459, 0.0000
+ bone.roll = 0.0000
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['foot.L']]
+ bones['heel.02.L'] = bone.name
+ bone = arm.edit_bones.new('toe.R')
+ bone.head[:] = -0.0980, -0.0934, 0.0167
+ bone.tail[:] = -0.0980, -0.1606, 0.0167
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['foot.R']]
+ bones['toe.R'] = bone.name
+ bone = arm.edit_bones.new('heel.02.R')
+ bone.head[:] = -0.0600, 0.0459, 0.0000
+ bone.tail[:] = -0.1400, 0.0459, 0.0000
+ bone.roll = -0.0000
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['foot.R']]
+ bones['heel.02.R'] = bone.name
+ bone = arm.edit_bones.new('spine.005')
+ bone.head[:] = 0.0000, -0.0067, 1.7197
+ bone.tail[:] = 0.0000, -0.0247, 1.7813
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['spine.004']]
+ bones['spine.005'] = bone.name
+ bone = arm.edit_bones.new('upper_arm.L')
+ bone.head[:] = 0.1953, 0.0267, 1.5846
+ bone.tail[:] = 0.4424, 0.0885, 1.4491
+ bone.roll = 2.0724
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['shoulder.L']]
+ bones['upper_arm.L'] = bone.name
+ bone = arm.edit_bones.new('upper_arm.R')
+ bone.head[:] = -0.1953, 0.0267, 1.5846
+ bone.tail[:] = -0.4424, 0.0885, 1.4491
+ bone.roll = -2.0724
+ bone.use_connect = False
+ bone.parent = arm.edit_bones[bones['shoulder.R']]
+ bones['upper_arm.R'] = bone.name
+ bone = arm.edit_bones.new('spine.006')
+ bone.head[:] = 0.0000, -0.0247, 1.7813
+ bone.tail[:] = 0.0000, -0.0247, 1.9796
+ bone.roll = 0.0000
+ bone.use_connect = True
+ bone.parent = arm.edit_bones[bones['spine.005']]
+ bones['spine.006'] = bone.name
+ bone = arm.edit_bones.new('forearm.L')
+ bone.head[:] = 0.4424, 0.0885, 1.4491
+ bone.tail[:] = 0.6594, 0.0492, 1.3061
+ bone.roll = 2.1535
+ bone.use_con
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list