diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-05 10:08:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-05 10:08:34 +0300 |
commit | 696b0366f5c46dcfcb50f53b4ca4f59c593b88fb (patch) | |
tree | 8dfbeb67383adc39b5742c661f61a55eb4066659 /io_anim_camera.py | |
parent | dfd3febce161e76015beb0faac516724aceff453 (diff) |
update for changes in mathutuils.
Diffstat (limited to 'io_anim_camera.py')
-rw-r--r-- | io_anim_camera.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/io_anim_camera.py b/io_anim_camera.py index bd0e884e..1a34fdc2 100644 --- a/io_anim_camera.py +++ b/io_anim_camera.py @@ -87,9 +87,9 @@ def writeCameras(context, filepath, frame_start, frame_end, only_selected=False) fw("obj = cameras['%s']\n" % obj.name) matrix = obj.matrix_world.copy() - fw("obj.location = %s\n" % repr(tuple(matrix.translation_part()))) - fw("obj.scale = %s\n" % repr(tuple(matrix.scale_part()))) - fw("obj.rotation_euler = %s\n" % repr(tuple(matrix.to_euler()))) + fw("obj.location = %r\n" % matrix.to_translation()[:]) + fw("obj.scale = %r\n" % matrix.to_scale()[:]) + fw("obj.rotation_euler = %r\n" % matrix.to_euler()[:]) fw("obj.keyframe_insert('location')\n") fw("obj.keyframe_insert('scale')\n") |