111
This object gives access to Pose-specific data in Blender.
112
@ivar bones: A Dictionary of PosePoseBones (PoseDict) that make up this Pose.
113
@type bones: PoseDict Object
111
This object gives access to Pose-specific data in Blender.
112
@ivar bones: A Dictionary of PosePoseBones (PoseDict) that make up this Pose.
113
@type bones: PoseDict Object
118
Save all changes and update the Pose.
118
Save all changes and update the Pose.
122
122
class PoseBonesDict:
124
The PoseBonesDict object
125
========================
126
This object gives dictionary like access to the PoseBones in a Pose.
127
It is internal to blender but is called as 'Pose.bones'
132
Return the key, value pairs in this dictionary
133
@rtype: string, PosePoseBone
134
@return: All strings, and PosePoseBones in the Pose (in that order)
139
Return the keys in this dictionary
141
@return: All strings representing the PosePoseBone names
146
Return the values in this dictionary
148
@return: All PosePoseBones in this dictionary
124
The PoseBonesDict object
125
========================
126
This object gives dictionary like access to the PoseBones in a Pose.
127
It is internal to blender but is called as 'Pose.bones'
132
Return the key, value pairs in this dictionary
133
@rtype: string, PosePoseBone
134
@return: All strings, and PosePoseBones in the Pose (in that order)
139
Return the keys in this dictionary
141
@return: All strings representing the PosePoseBone names
146
Return the values in this dictionary
148
@return: All PosePoseBones in this dictionary
155
This object gives access to PoseBone-specific data in Blender.
156
@ivar name: The name of this PoseBone.
158
@ivar loc: The change in location for this PoseBone.
159
@type loc: Vector object
160
@ivar size: The change in size for this PoseBone (no change is 1,1,1)
161
@type size: Vector object
162
@ivar quat: The change in rotation for this PoseBone.
163
@type quat: Quaternion object
164
@ivar head: The final head location for this PoseBone. (not settable)
165
@type head: Vector object
166
@ivar tail: The final tail location for this PoseBone. (not settable)
167
@type tail: Vector object
168
@ivar sel: The selection state of this bone
170
@ivar parent: The parent of this posebone (not settable)
171
@type parent: posebone or None
172
@ivar displayObject: The object to display in place of the bone. (custom bones)
173
@type displayObject: Object or None
174
@ivar localMatrix: The matrix combination of rot/size/loc.
175
@type localMatrix: Matrix object
176
@ivar poseMatrix: The total transformation of this PoseBone including constraints.
180
This matrix is in armature space, for the current worldspace location of this pose bone, multiply
181
it with its objects worldspace matrix
183
eg. pose_bone.poseMatrix * object.matrixWorld
184
@type poseMatrix: Matrix object
185
@type constraints: BPy_ConstraintSeq
186
@ivar constraints: a sequence of constraints for the object
187
@type limitmin: A 3-item sequence
188
@ivar limitmin: The x,y,z minimum limits on rotation when part of an IK
189
@type limitmax: A 3-item sequence
190
@ivar limitmax: The x,y,z maximum limits on rotation when part of an IK
194
def insertKey(parentObject, frameNumber, type):
196
Insert a pose key for this PoseBone at a frame.
197
@type parentObject: Object object
198
@param parentObject: The object the pose came from.
199
@type frameNumber: integer
200
@param frameNumber: The frame number to insert the pose key on.
201
@type type: Constant object
202
@param type: Can be any combination of 3 Module constants:
204
- Pose.ROT (This adds keyframes to the quat ipo, since quaternions are used for pose bone rotation)
155
This object gives access to PoseBone-specific data in Blender.
156
@ivar name: The name of this PoseBone.
158
@ivar loc: The change in location for this PoseBone. this is the equivilent of bone.getLoc() in the old 2.3x python api.
159
@type loc: Vector object
160
@ivar size: The change in size for this PoseBone (no change is 1,1,1)
161
@type size: Vector object
162
@ivar quat: The change in rotation for this PoseBone.
163
@type quat: Quaternion object
164
@ivar head: The final head location for this PoseBone. (not settable)
165
@type head: Vector object
166
@ivar tail: The final tail location for this PoseBone. (not settable)
167
@type tail: Vector object
168
@ivar sel: The selection state of this bone
170
@ivar parent: The parent of this posebone (not settable)
171
@type parent: posebone or None
172
@ivar displayObject: The object to display in place of the bone. (custom bones)
173
@type displayObject: Object or None
174
@ivar localMatrix: The matrix combination of rot/size/loc.
175
@type localMatrix: Matrix object
176
@ivar poseMatrix: The total transformation of this PoseBone including constraints.
180
This matrix is in armature space, for the current worldspace location of this pose bone, multiply
181
it with its objects worldspace matrix
183
eg. pose_bone.poseMatrix * object.matrixWorld
184
@type poseMatrix: Matrix object
185
@type constraints: BPy_ConstraintSeq
186
@ivar constraints: a sequence of constraints for the object
187
@type limitmin: 3-item sequence
188
@ivar limitmin: The x,y,z minimum limits on rotation when part of an IK
189
@type limitmax: 3-item sequence
190
@ivar limitmax: The x,y,z maximum limits on rotation when part of an IK
193
@ivar hasIK: True if this pose bone is a part of an IK (readonly), when False, other IK related values have no affect.
196
@ivar stretch: The amount to stretch to the ik target when part of an IK [0.0 - 1.0]
199
@ivar stiffX: The x stiffness when part of an IK [0.0 - 0.990]
201
@ivar stiffY: The x stiffness when part of an IK [0.0 - 0.990]
203
@ivar stiffZ: The x stiffness when part of an IK [0.0 - 0.990]
206
@ivar limitX: Limit rotation over X axis when part of an IK.
208
@ivar limitY: Limit rotation over Y axis when part of an IK.
210
@ivar limitZ: Limit rotation over Z axis when part of an IK.
213
@ivar lockXRot: Disable X DoF when part of an IK.
215
@ivar lockYRot: Disable Y DoF when part of an IK.
217
@ivar lockZRot: Disable Z DoF when part of an IK.
221
def insertKey(parentObject, frameNumber, type = "[Pose.LOC, Pose.ROT, Pose.SIZE]", fast = False):
223
Insert a pose key for this PoseBone at a frame.
224
@type parentObject: Object object
225
@param parentObject: The object the pose came from.
226
@type frameNumber: integer
227
@param frameNumber: The frame number to insert the pose key on.
228
@type type: Constant object
229
@param type: Optional argumentm.
230
Can be any combination of 3 Module constants:
232
- Pose.ROT (This adds keyframes to the quat ipo, since quaternions are used for pose bone rotation)
234
If this argument is omitted all keys will be added.
236
@param fast: If enabled, the IPOs will not be recalculated, speeds up adding many keyframes at once.