python pose_channels -> bones
authorCampbell Barton <ideasman42@gmail.com>
Wed, 18 Nov 2009 11:50:31 +0000 (11:50 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 18 Nov 2009 11:50:31 +0000 (11:50 +0000)
release/scripts/io/export_fbx.py
release/scripts/io/import_anim_bvh.py
release/scripts/ui/properties_data_bone.py
release/scripts/ui/properties_object_constraint.py

index ec2d2791b5233dd35afadc97fa4d2163aed4705c..8b7501bea4d01bb2d0c4ff88c9de0a8f44827d29 100644 (file)
@@ -498,8 +498,7 @@ def write(filename, batch_objects = None, \
                        # not public
                        pose = fbxArm.blenObject.pose
 #                      pose = fbxArm.blenObject.getPose()
-                       self.__pose_bone =              pose.pose_channels[self.blenName]
-#                      self.__pose_bone =              pose.bones[self.blenName]
+                       self.__pose_bone =              pose.bones[self.blenName]
                        
                        # store a list if matricies here, (poseMatrix, head, tail)
                        # {frame:posematrix, frame:posematrix, ...}
index dff9a3ac0c8eabdf53f0be280073e2ad2b486881..8185785d1b2f5fee7c56c55cc60db719cb1b6718 100644 (file)
@@ -460,7 +460,7 @@ def bvh_node_dict2armature(context, bvh_nodes, IMPORT_START_FRAME= 1, IMPORT_LOO
        bpy.ops.object.mode_set(mode='POSE', toggle=False)
        
        pose= arm_ob.pose
-       pose_bones= pose.pose_channels
+       pose_bones= pose.bones
        
        
        if ROT_STYLE=='NATIVE':
index 2a93f4f4b63797357fd348944c2f030674998934..cd1ccd6046438777a83ba0830df6f1936cb3cb55 100644 (file)
@@ -78,7 +78,7 @@ class BONE_PT_transform(BoneButtonsPanel):
                 col.itemR(bone, "locked")
 
         else:
-            pchan = ob.pose.pose_channels[context.bone.name]
+            pchan = ob.pose.bones[context.bone.name]
 
             if col2:
                 row = layout.row()
@@ -128,7 +128,7 @@ class BONE_PT_transform_locks(BoneButtonsPanel):
 
         ob = context.object
         bone = context.bone
-        pchan = ob.pose.pose_channels[context.bone.name]
+        pchan = ob.pose.bones[context.bone.name]
 
         row = layout.row()
         col = row.column()
@@ -162,7 +162,7 @@ class BONE_PT_relations(BoneButtonsPanel):
             bone = context.edit_bone
             pchan = None
         else:
-            pchan = ob.pose.pose_channels[context.bone.name]
+            pchan = ob.pose.bones[context.bone.name]
 
         split = layout.split()
 
@@ -208,7 +208,7 @@ class BONE_PT_display(BoneButtonsPanel):
             bone = context.edit_bone
             pchan = None
         else:
-            pchan = ob.pose.pose_channels[context.bone.name]
+            pchan = ob.pose.bones[context.bone.name]
 
         if ob and pchan:
 
index 1f85dcad2d8ca21e482a767673bbf14e2f83c61f..ae8c9d2333029ffb16359a09f7ed9f8043854dc0 100644 (file)
@@ -744,7 +744,7 @@ class BONE_PT_inverse_kinematics(ConstraintButtonsPanel):
         bone = context.bone
 
         if ob and bone:
-            pchan = ob.pose.pose_channels[bone.name]
+            pchan = ob.pose.bones[bone.name]
             return pchan.has_ik
 
         return False
@@ -754,7 +754,7 @@ class BONE_PT_inverse_kinematics(ConstraintButtonsPanel):
 
         ob = context.object
         bone = context.bone
-        pchan = ob.pose.pose_channels[bone.name]
+        pchan = ob.pose.bones[bone.name]
         col2 = context.region.width > narrowui
 
         row = layout.row()
@@ -844,7 +844,7 @@ class BONE_PT_iksolver_itasc(ConstraintButtonsPanel):
         bone = context.bone
 
         if ob and bone:
-            pchan = ob.pose.pose_channels[bone.name]
+            pchan = ob.pose.bones[bone.name]
             return pchan.has_ik and ob.pose.ik_solver == 'ITASC' and ob.pose.ik_param
 
         return False
@@ -903,7 +903,7 @@ class BONE_PT_constraints(ConstraintButtonsPanel):
         layout = self.layout
 
         ob = context.object
-        pchan = ob.pose.pose_channels[context.bone.name]
+        pchan = ob.pose.bones[context.bone.name]
         col2 = context.region.width > narrowui
 
         row = layout.row()