From ca7e269103e8a5f7d7e8082253030d0fdcdff68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9verin=20Lemaignan?= Date: Fri, 6 Jul 2018 14:17:39 +0100 Subject: [PATCH] [blender] Press F5 to printout the current pose of the camera Useful to later configure it in Builder scripts --- src/morse/blender/view_camera.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/morse/blender/view_camera.py b/src/morse/blender/view_camera.py index da36f619e..c7b2ee8da 100644 --- a/src/morse/blender/view_camera.py +++ b/src/morse/blender/view_camera.py @@ -131,6 +131,11 @@ def move(contr): reset_position(camera) if key[0] == blenderapi.F7KEY and keyboard.positive: look_robot(camera) + if key[0] == blenderapi.F5KEY and keyboard.positive: + logger.info("Current camera pose: %s, %s" % + (camera.worldPosition, + camera.worldOrientation.to_euler())) + def rotate(contr):