← All ideas
  • Published 26 Sep 2019

Python: Add pointer to owner Armature in Bone, EditBone

I'm writing an addon for rigging right now, and I'd like the ability to access the armature data block a bone belongs to. This would make it so I have fewer values to pass around within my scripts. Blender's Python API would need to add a property to Bone and EditBone to access the armature datablock. Thanks.

50%

Development Status: Done

Upvote 1 Downvote 1
Josephbburg
26 Sep 2019

2 Comments

Josephbburg Author

I just discovered that this is possible already using the bpy_struct.id_data property. It might be nice to make it more explicit, but I'll close this post out.

phil123456789

can YOU be more explicit ? there is no id_data in a bone object AFAIK