===Python API===
authorKen Hughes <khughes@pacific.edu>
Tue, 9 May 2006 01:34:59 +0000 (01:34 +0000)
committerKen Hughes <khughes@pacific.edu>
Tue, 9 May 2006 01:34:59 +0000 (01:34 +0000)
Correct error in Constraint example code.

source/blender/python/api2_2x/doc/Constraint.py

index 18ffbf388c8fca8da806c09c22893f79de72ff39..bdc5e56728c33e70a70c7d66ad08d34346a20f1c 100644 (file)
@@ -21,10 +21,11 @@ Or to print all the constraints attached to each bone in a pose::
   from Blender import *
   
   ob = Object.Get('Armature')
+  pose = ob.getPose()
   for bonename in pose.bones.keys():
     bone = pose.bones[bonename]
     for const in bone.constraints:
-      print bone.name,'=>'const
+      print bone.name,'=>',const
 
 @type Type: readonly dictionary
 @var Type: Constant Constraint dict used by L{ConstraintSeq.append()} and