diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-10-20 15:28:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-10-20 15:28:58 +0400 |
commit | a4c8783153b7ba94d74e7ff1e0ceafda731c6528 (patch) | |
tree | d878398d83e9dd442d29b162971c5a8d73ad9334 /source/blender/python/api2_2x/doc | |
parent | 0014fed54f1a7c54a66e96bfb210b9f4f2290e61 (diff) |
made setting the pose_bone.poseMatrix possible, this does not set the matrix directly, only the pose
bones loc/size/rot, when dealing with an armature without constraints this works as expected. it uses
the same code as Copy Visual Loc/Size/Rot.
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r-- | source/blender/python/api2_2x/doc/Pose.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/doc/Pose.py b/source/blender/python/api2_2x/doc/Pose.py index 677141d3dfd..e0c0c241044 100644 --- a/source/blender/python/api2_2x/doc/Pose.py +++ b/source/blender/python/api2_2x/doc/Pose.py @@ -175,12 +175,14 @@ class PoseBone: @type localMatrix: Matrix object @ivar poseMatrix: The total transformation of this PoseBone including constraints. - (not settable). - This matrix is in armature space, for the current worldspace location of this pose bone, multiply - it with its objects worldspace matrix + it with its objects worldspace matrix. eg. pose_bone.poseMatrix * object.matrixWorld + + Setting the poseMatrix only sets the loc/size/rot, before constraints are applied (similar to actions). + After setting pose matrix, run pose.update() to re-evaluate the pose and see the changes in the 3d view. + @type poseMatrix: Matrix object @type constraints: BPy_ConstraintSeq @ivar constraints: a sequence of constraints for the object |