[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4472] trunk/py/scripts/addons/ io_coat3D/coat.py: fixes axis problem.

Kalle-Samuli Riihikoski haikalle at gmail.com
Mon Apr 15 09:33:54 CEST 2013


Revision: 4472
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4472
Author:   haikalle
Date:     2013-04-15 07:33:53 +0000 (Mon, 15 Apr 2013)
Log Message:
-----------
fixes axis problem. Thanks to Lucoat for reporting this.

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-04-14 02:02:24 UTC (rev 4471)
+++ trunk/py/scripts/addons/io_coat3D/coat.py	2013-04-15 07:33:53 UTC (rev 4472)
@@ -232,7 +232,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='X',axis_up='Y')
+        keep_vertex_order = True,axis_forward='Y',axis_up='Z')
         
         obj.location = coa.loc
         obj.rotation_euler = coa.rot
@@ -364,7 +364,7 @@
                     if(os.path.isfile(mtl)):
                         os.remove(mtl)
                    
-                    bpy.ops.import_scene.obj(filepath=path_object,axis_forward='X',axis_up='Y',use_image_search=False)
+                    bpy.ops.import_scene.obj(filepath=path_object,axis_forward='Y',axis_up='Z',use_image_search=False)
                     obj_proxy = scene.objects[0]
                     bpy.ops.object.select_all(action='TOGGLE')
                     obj_proxy.select = True
@@ -475,7 +475,7 @@
             if(os.path.isfile(mtl_list)):
                 os.remove(mtl_list)
                 
-            bpy.ops.import_scene.obj(filepath=new_applink_name,axis_forward='X',axis_up='Y')
+            bpy.ops.import_scene.obj(filepath=new_applink_name,axis_forward='Y',axis_up='Z')
             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