I was wondering if there's a way to delete all keyframes on the locked channels in items panel or Bone Properties > Transform panel? As one can do with right mouse click and selecting delete kleyframes or delete single keyframe The code that performs this operation is:
bpy.ops.anim.keyframe_delete_button(all=True)
or I guess if multiple keyframes:
bpy.ops.anim.keyframe_clear_button()
Whatever I tried I had 0 luck.
Basically I’d need the code to check if selected pose bone has any locked channels in these panels and if it does and if those channels are still keyframed, to delete all the keyframes from those channels.
Is this possible?