Select tail of a bone python

Hey all, i am new to python and need to select the tail of a bone in python. I was used this script but it doesn’t select the tail of a bone:

bpy.data.armatures["Armature"].bones["Bone.001"].select_tail=True

Any helps are very very welcome.

Selecting in armature edit mode:
bpy.data.armatures[“Armature”].edit_bones[“Bone.001”].select_tail = True

1 Like

@Cirno hey i try your code but it doesn’t work for me so i send you my armature file. It doesn’t work in edit mode same when i run it too in object mode and change to edit mode.Please can you give me your approbation with python code. Thanks

@Cirno Sorry it is working now i have selected in object mode the armature and apply your code thanks you so much