obtaining bone-object relationship!?

Hi everybody! I posted a topic last week on how to use getParentBoneName() (https://blenderartists.org/forum/viewtopic.php?t=48125&highlight=getparentbonename) but I haven’t gotten any responses.

Does anyone know if it’s possible to write a python script to figure out which bone of an armature an object is attached to? I’m not really interested in knowing, for example, that objA is the child of Armature.001, but rather the child of a specific bone of Armature.001.

If anyone has tried using getParentBoneName() with any success, can you give me some tips? Thanks a lot!! :stuck_out_tongue:

I may be incorrect, and I don’t have much experience, but I think you can look at the vertex groups of an object to figure out what it is attached to. From what I know, the vertex groups names match the bone names. You can use .getvertexinfluences to get a list of bone names thusly.

Sorry if that isn’t what you’re looking for. Theres a small chance that if it isn’t, I may still be able to help.