get bone path from transform

Is there a function that will give me the path. ie cow/hip/chest/rleg instead of just the name ie “rleg” from a bone transform. I mean something besides iterating through all the parents and making the list manually?

How do retrieve a bone with the name “rleg” if there are two figures on the screen with a “rleg”.

Thanks,

Dan

I don’t think there is a function for that out of the box. You will have to iterate the hierarchy and get the full name.