1
# blender script to extract the true pose, has to be run in blender console
3
robot = bpy.data.objects['Robot']
4
#robot = bpy.data.objects['Camera']
6
bpy.context.scene.frame_set(i)
7
fname = str(i).rjust(4, '0') + '.png'
8
mat_str = str(robot.matrix_world)[6:].replace('\n', '')
9
#mat_str = str(robot.matrix_world.translation_part())
10
print(fname + ' ' + mat_str)