base class — PyObjectPlus
Proxy to armature pose channel. Allows to read and set armature pose. The attributes are identical to RNA attributes, but mostly in read-only mode.
channel name (=bone name), read-only.
Type: | string |
---|
return the bone object corresponding to this pose channel, read-only.
Type: | BL_ArmatureBone |
---|
return the parent channel object, None if root channel, read-only.
Type: | BL_ArmatureChannel |
---|
true if the bone is part of an active IK chain, read-only. This flag is not set when an IK constraint is defined but not enabled (miss target information for example).
Type: | boolean |
---|
true if the bone is free to rotation in the X axis, read-only.
Type: | boolean |
---|
true if the bone is free to rotation in the Y axis, read-only.
Type: | boolean |
---|
true if the bone is free to rotation in the Z axis, read-only.
Type: | boolean |
---|
true if a limit is imposed on X rotation, read-only.
Type: | boolean |
---|
true if a limit is imposed on Y rotation, read-only.
Type: | boolean |
---|
true if a limit is imposed on Z rotation, read-only.
Type: | boolean |
---|
true if channel rotation should applied as IK constraint, read-only.
Type: | boolean |
---|
true if channel size should applied as IK constraint, read-only.
Type: | boolean |
---|
displacement of the bone head in armature local space, read-write.
Type: | vector [X, Y, Z]. |
---|
Note
You can only move a bone if it is unconnected to its parent. An action playing on the armature may change the value. An IK chain does not update this value, see joint_rotation.
Note
Changing this field has no immediate effect, the pose is updated when the armature is updated during the graphic render (see BL_ArmatureObject.update).
scale of the bone relative to its parent, read-write.
Type: | vector [sizeX, sizeY, sizeZ]. |
---|
Note
An action playing on the armature may change the value. An IK chain does not update this value, see joint_rotation.
Note
Changing this field has no immediate effect, the pose is updated when the armature is updated during the graphic render (see BL_ArmatureObject.update)
rotation of the bone relative to its parent expressed as a quaternion, read-write.
Type: | vector [qr, qi, qj, qk]. |
---|
Note
This field is only used if rotation_mode is 0. An action playing on the armature may change the value. An IK chain does not update this value, see joint_rotation.
Note
Changing this field has no immediate effect, the pose is updated when the armature is updated during the graphic render (see BL_ArmatureObject.update)
rotation of the bone relative to its parent expressed as a set of euler angles, read-write.
Type: | vector [X, Y, Z]. |
---|
Note
This field is only used if rotation_mode is > 0. You must always pass the angles in [X, Y, Z] order; the order of applying the angles to the bone depends on rotation_mode. An action playing on the armature may change this field. An IK chain does not update this value, see joint_rotation.
Note
Changing this field has no immediate effect, the pose is updated when the armature is updated during the graphic render (see BL_ArmatureObject.update)
Method of updating the bone rotation, read-write.
Type: | integer (one of these constants) |
---|
pose matrix in bone space (deformation of the bone due to action, constraint, etc), Read-only. This field is updated after the graphic render, it represents the current pose.
Type: | matrix [4][4] |
---|
pose matrix in armature space, read-only, This field is updated after the graphic render, it represents the current pose.
Type: | matrix [4][4] |
---|
position of bone head in armature space, read-only.
Type: | vector [x, y, z] |
---|
position of bone tail in armature space, read-only.
Type: | vector [x, y, z] |
---|
minimum value of X rotation in degree (<= 0) when X rotation is limited (see ik_limit_x), read-only.
Type: | float |
---|
maximum value of X rotation in degree (>= 0) when X rotation is limited (see ik_limit_x), read-only.
Type: | float |
---|
minimum value of Y rotation in degree (<= 0) when Y rotation is limited (see ik_limit_y), read-only.
Type: | float |
---|
maximum value of Y rotation in degree (>= 0) when Y rotation is limited (see ik_limit_y), read-only.
Type: | float |
---|
minimum value of Z rotation in degree (<= 0) when Z rotation is limited (see ik_limit_z), read-only.
Type: | float |
---|
maximum value of Z rotation in degree (>= 0) when Z rotation is limited (see ik_limit_z), read-only.
Type: | float |
---|
bone rotation stiffness in X axis, read-only.
Type: | float between 0 and 1 |
---|
bone rotation stiffness in Y axis, read-only.
Type: | float between 0 and 1 |
---|
bone rotation stiffness in Z axis, read-only.
Type: | float between 0 and 1 |
---|
ratio of scale change that is allowed, 0=bone can’t change size, read-only.
Type: | float |
---|
weight of rotation constraint when ik_rot_control is set, read-write.
Type: | float between 0 and 1 |
---|
weight of size constraint when ik_lin_control is set, read-write.
Type: | float between 0 and 1 |
---|
Control bone rotation in term of joint angle (for robotic applications), read-write.
When writing to this attribute, you pass a [x, y, z] vector and an appropriate set of euler angles or quaternion is calculated according to the rotation_mode.
When you read this attribute, the current pose matrix is converted into a [x, y, z] vector representing the joint angles.
The value and the meaning of the x, y, z depends on the ik_dof_x/ik_dof_y/ik_dof_z attributes:
Type: | vector [x, y, z] |
---|
Note
The bone must be part of an IK chain if you want to set the ik_dof_x/ik_dof_y/ik_dof_z attributes via the UI, but this will interfere with this attribute since the IK solver will overwrite the pose. You can stay in control of the armature if you create an IK constraint but do not finalize it (e.g. don’t set a target) the IK solver will not run but the IK panel will show up on the UI for each bone in the chain.
Note
[0, 0, 0] always corresponds to the rest pose.
Note
You must request the armature pose to update and wait for the next graphic frame to see the effect of setting this attribute (see BL_ArmatureObject.update).
Note
You can read the result of the calculation in rotation or euler_rotation attributes after setting this attribute.