Pose Bone - Update Viewport Selection?

From what I can see, you’re only selecting the bone, when you should also be setting the selected bone as the active bone.

import bpy
bpy.data.objects["Armature"].data.bones.active = bpy.data.objects["Armature"].data.bones["Bone.001"]
bpy.data.objects["Armature"].data.bones["Bone.001"].select = True
1 Like