Relative transform... Relative to what?

But what if I attach 1 Mesh A to another Mesh B and call get relative transform. Will I get the relative transform to Mesh B and if yes, how can I get the relative transform to the rootcomponent? Do I have to add the transforms manually?