Select_head not working

Hello everyone !

I am working on a little script to automate some armature stuff, I want to select the whole bone, then dissolve it, but the select_head is not working in either 2.79 or 2.80, what am I missing here ?

bone.select = True
bone.select_tail = True
bone.select_head = True

Thanks in advance for any help !

EDIT: it works if the bone is disconnected, but not if its connected, will try to disconnect, then connect it back and see if it works !

Found it, you need to select the tail of both the bone you want to dissolve along with the tail of its parent, easy when you know how ! :slight_smile:

    bone.select = True;
    bone.parent.select_tail = True;
    bone.select_tail= True;
    bpy.ops.armature.dissolve()