I have an CAT hierarchy and an selected bone:

I want to select the CAT Object that is related to it (the "triangle" on screen).
I know I can go from given bone to root bone via parents this way:
local firstBoneName = (skinOps.GetBoneName (ePoly.modifiers[#skin]) 1 0)
local boneParent = getNodeByName firstBoneName
while (boneParent.parent != undefined) do (
boneParent = (boneParent.parent)
)
So now I have this (the root bone that has no parent):

How can I go from one to another?
