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.
This commit is contained in:
2007-10-20 11:28:58 +00:00
parent 0014fed54f
commit a4c8783153
2 changed files with 35 additions and 6 deletions

View File

@@ -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