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.
2 Comments
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.
can YOU be more explicit ? there is no id_data in a bone object AFAIK