[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24638] trunk/blender/release/scripts: python pose_channels -> bones

Campbell Barton ideasman42 at gmail.com
Wed Nov 18 12:50:32 CET 2009


Revision: 24638
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24638
Author:   campbellbarton
Date:     2009-11-18 12:50:31 +0100 (Wed, 18 Nov 2009)

Log Message:
-----------
python pose_channels -> bones

Modified Paths:
--------------
    trunk/blender/release/scripts/io/export_fbx.py
    trunk/blender/release/scripts/io/import_anim_bvh.py
    trunk/blender/release/scripts/ui/properties_data_bone.py
    trunk/blender/release/scripts/ui/properties_object_constraint.py

Modified: trunk/blender/release/scripts/io/export_fbx.py
===================================================================
--- trunk/blender/release/scripts/io/export_fbx.py	2009-11-18 11:40:55 UTC (rev 24637)
+++ trunk/blender/release/scripts/io/export_fbx.py	2009-11-18 11:50:31 UTC (rev 24638)
@@ -498,8 +498,7 @@
 			# 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, ...}

Modified: trunk/blender/release/scripts/io/import_anim_bvh.py
===================================================================
--- trunk/blender/release/scripts/io/import_anim_bvh.py	2009-11-18 11:40:55 UTC (rev 24637)
+++ trunk/blender/release/scripts/io/import_anim_bvh.py	2009-11-18 11:50:31 UTC (rev 24638)
@@ -460,7 +460,7 @@
 	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':

Modified: trunk/blender/release/scripts/ui/properties_data_bone.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_bone.py	2009-11-18 11:40:55 UTC (rev 24637)
+++ trunk/blender/release/scripts/ui/properties_data_bone.py	2009-11-18 11:50:31 UTC (rev 24638)
@@ -78,7 +78,7 @@
                 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 @@
 
         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 @@
             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 @@
             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:
 

Modified: trunk/blender/release/scripts/ui/properties_object_constraint.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_object_constraint.py	2009-11-18 11:40:55 UTC (rev 24637)
+++ trunk/blender/release/scripts/ui/properties_object_constraint.py	2009-11-18 11:50:31 UTC (rev 24638)
@@ -744,7 +744,7 @@
         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 @@
 
         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 @@
         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 @@
         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()





More information about the Bf-blender-cvs mailing list