[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4619] trunk/py/scripts/addons/ io_coat3D/coat.py: [3DCoat] Fix for export/import axys.
paul geraskin
paul_geraskin at mail.ru
Thu Jul 4 13:18:24 CEST 2013
Revision: 4619
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4619
Author: mifth
Date: 2013-07-04 11:18:23 +0000 (Thu, 04 Jul 2013)
Log Message:
-----------
[3DCoat] Fix for export/import axys. Obj-format for blender2.68+3dCoat4 should be: axis_forward=-Z, axis_up=Y.
Modified Paths:
--------------
trunk/py/scripts/addons/io_coat3D/coat.py
Modified: trunk/py/scripts/addons/io_coat3D/coat.py
===================================================================
--- trunk/py/scripts/addons/io_coat3D/coat.py 2013-07-02 19:47:26 UTC (rev 4618)
+++ trunk/py/scripts/addons/io_coat3D/coat.py 2013-07-04 11:18:23 UTC (rev 4619)
@@ -236,7 +236,7 @@
bpy.ops.export_scene.obj(filepath=coa.applink_name,use_selection=True,
use_mesh_modifiers=False,use_blen_objects=True, use_materials = True,
- keep_vertex_order = True,axis_forward='Y',axis_up='Z')
+ keep_vertex_order = True,axis_forward='-Z',axis_up='Y')
obj.location = coa.loc
obj.rotation_euler = coa.rot
@@ -368,7 +368,7 @@
if(os.path.isfile(mtl)):
os.remove(mtl)
- bpy.ops.import_scene.obj(filepath=path_object,axis_forward='Y',axis_up='Z',use_image_search=False)
+ bpy.ops.import_scene.obj(filepath=path_object,axis_forward='-Z',axis_up='Y',use_image_search=False)
obj_proxy = scene.objects[0]
bpy.ops.object.select_all(action='TOGGLE')
obj_proxy.select = True
@@ -479,7 +479,7 @@
if(os.path.isfile(mtl_list)):
os.remove(mtl_list)
- bpy.ops.import_scene.obj(filepath=new_applink_name,axis_forward='Y',axis_up='Z')
+ bpy.ops.import_scene.obj(filepath=new_applink_name,axis_forward='-Z',axis_up='Y')
bpy.ops.object.transform_apply(rotation=True)
new_obj = scene.objects[0]
new_obj.coat3D.applink_name = obj_path
More information about the Bf-extensions-cvs
mailing list