# "Protected" Interface
def _ClearAllBoneTransforms(self):
armatureBones = None
armatureBones = self.ExportObject.BlenderObject.data.bones
# select all bones and clear transforms
for armatureBone in armatureBones:
armatureBone.select = True
armatureBone.select_tail = True
armatureBone.select_head = True
armatureBones.active = armatureBone;
//remember mode, switch somehow to pose mode
bpy.ops.pose.transforms_clear() //it fails, I get error failed, context is incorrect - I suppose because I am in Object Mode and need dynamically change context to pose
//back to remembered mode