Skip to content

Commit

Permalink
[blender] Press F5 to printout the current pose of the camera
Browse files Browse the repository at this point in the history
Useful to later configure it in Builder scripts
  • Loading branch information
severin-lemaignan committed Jul 6, 2018
1 parent ff9886b commit ca7e269
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/morse/blender/view_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ca7e269

Please sign in to comment.