Nvm found it
pose mode:
armature.data.bones.active
edit mode:
armature.data.edit_bones.active
Nvm found it
pose mode:
armature.data.bones.active
edit mode:
armature.data.edit_bones.active
Thank you so much man. Used it to automatically reparent every object in a rig (after a modeling update) to its corresponding bone, and I needed the bone to be active (not just selected) for the object to be parented to it - using operators specifically (couldn’t use the data API directly because I needed to make a ‘bone_relative’ parenting). Yay !
Awesome, glad it helped!