Parent bone of object in armature


(Kero) #1

I am unable to detect to which bone is parent to certain object.
I create an armature, with few bones and another object, make a parent:


Make parent to:
bone
armature
object

I choose bone-> list of bones in armature, choose one and ok, object is linked to bone and not armature. But object.getParent is armature, not bone (well, it makes sense, more or less).
Is there a way to get name of bone or bone object from the object that is child to the bone?