Hi, I could use some help to figure this out.
I am trying to copy an armature’s pose while the action is in ‘REPLACE’, change the blend type to ‘ADD’ and paste that exact same pose.
Strangely, even though the copied matrix corresponds to the initial pose, checking the bone’s matrix on the python console I get a different result.
Using the copy and past pose operators results in the same issue.
It seems to have something to do with the underlying pose but I cannot figure what exactly.
Here is my code:
import bpy obj = bpy.data.objects['Armature'] pbone = obj.pose.bones['Bone'] #COPY POSE print(obj.animation_data.action_blend_type) #should be 'REPLACE' initialMatrix = pbone.matrix.copy() print(pbone.matrix) print(initialMatrix) #change blend type to additive obj.animation_data.action_blend_type = 'ADD' print(obj.animation_data.action_blend_type) #PASTE POSE pbone.matrix = initialMatrix print(pbone.matrix) print(initialMatrix)