I have a robot model in blender. Whose links are formed as parent child relationship and a tree is formed. At the moment I am looking how to get translation and rotation of the child object with respect to its parent object. I am using Blender 2.79b at the moment. Selecting any object in the scene gives (0, 0, 0) for translation and (0, 0, 0) for rotation.
Any leads will be appreciated.



Can you tell us why you need this relational info? Is it that you're trying to manipulate appendages externally perhaps? -
https://blender.stackexchange.com/questions/226867/parenting-and-animating-bone-to-an-empty-without-going-to-pose-mode/227026#227026
– Edgel3D Jun 28 '21 at 10:51location = context.object.matrix_local.translationand Euler rotationeuler_rotation = context.object.matrix_local.to_euler()– batFINGER Jun 30 '21 at 04:02