How to assign active bone?

Nvm found it

pose mode:
armature.data.bones.active

edit mode:
armature.data.edit_bones.active

1 Like

Thank you so much man. :slight_smile: 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!