[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3050] trunk/py/scripts/addons/ io_export_after_effects.py: Added rotation_x correction to exported objects to match default zero rotation in After Effects .
Bartek Skorupa
bartekskorupa at bartekskorupa.com
Fri Mar 2 12:11:29 CET 2012
Revision: 3050
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3050
Author: bartekskorupa
Date: 2012-03-02 11:11:17 +0000 (Fri, 02 Mar 2012)
Log Message:
-----------
Added rotation_x correction to exported objects to match default zero rotation in After Effects. Objects with zero rotation in blender lay on the floor. In AE leyers with zero rotation face the camera. AE users are used to this behavior, so this change gives them a better feeling.
Modified Paths:
--------------
trunk/py/scripts/addons/io_export_after_effects.py
Modified: trunk/py/scripts/addons/io_export_after_effects.py
===================================================================
--- trunk/py/scripts/addons/io_export_after_effects.py 2012-03-02 07:38:55 UTC (rev 3049)
+++ trunk/py/scripts/addons/io_export_after_effects.py 2012-03-02 11:11:17 UTC (rev 3050)
@@ -22,8 +22,8 @@
'name': 'Export: Adobe After Effects (.jsx)',
'description': 'Export cameras, selected objects & camera solution 3D Markers to Adobe After Effects CS3 and above',
'author': 'Bartek Skorupa',
- 'version': (0, 6, 0),
- 'blender': (2, 6, 1),
+ 'version': (0, 6, 1),
+ 'blender': (2, 6, 2),
'location': 'File > Export > Adobe After Effects (.jsx)',
"warning": "",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
@@ -427,7 +427,7 @@
# get object name
name_ae = selection['nulls'][i][1]
# convert ob transform properties to AE space
- ae_transform = convert_transform_matrix(ob[0].matrix_world.copy(), data['width'], data['height'], data['aspect'], x_rot_correction=False)
+ ae_transform = convert_transform_matrix(ob[0].matrix_world.copy(), data['width'], data['height'], data['aspect'], x_rot_correction=True)
# store all values in dico
js_data['nulls'][name_ae]['position'] += '[%f,%f,%f],' % (ae_transform[0], ae_transform[1], ae_transform[2])
if include_rotation:
More information about the Bf-extensions-cvs
mailing list