[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2018] trunk/py/scripts/addons/ io_coat3D/coat.py: Axis were wrong.
Kalle-Samuli Riihikoski
haikalle at gmail.com
Wed Jun 8 08:36:36 CEST 2011
Revision: 2018
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2018
Author: haikalle
Date: 2011-06-08 06:36:35 +0000 (Wed, 08 Jun 2011)
Log Message:
-----------
Axis were wrong.
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 2011-06-08 06:10:05 UTC (rev 2017)
+++ trunk/py/scripts/addons/io_coat3D/coat.py 2011-06-08 06:36:35 UTC (rev 2018)
@@ -1,3 +1,4 @@
+
# ***** BEGIN GPL LICENSE BLOCK *****
#
#
@@ -238,7 +239,7 @@
bpy.ops.export_scene.obj(filepath=checkname,use_selection=True,
use_apply_modifiers=coat3D.exportmod,use_blen_objects=False, group_by_material= True,
- use_materials = False,keep_vertex_order = True,axis_forward='Y',axis_up='Z')
+ use_materials = False,keep_vertex_order = True,axis_forward='X',axis_up='Y')
bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY', center='MEDIAN')
coa.export_on = True
@@ -253,7 +254,7 @@
bpy.ops.export_scene.obj(filepath=checkname,use_selection=True,
use_apply_modifiers=coat3D.exportmod,use_blen_objects=False, group_by_material= True,
- use_materials = False,keep_vertex_order = True,axis_forward='Y',axis_up='Z')
+ use_materials = False,keep_vertex_order = True,axis_forward='X',axis_up='Y')
obj.location = coat3D.loca
obj.rotation_euler = coat3D.rota
@@ -330,7 +331,7 @@
os.remove(mtl)
- bpy.ops.import_scene.obj(filepath=act_name.coat3D.objectdir,axis_forward='Y',axis_up='Z')
+ bpy.ops.import_scene.obj(filepath=act_name.coat3D.objectdir,axis_forward='X',axis_up='Y')
obj_proxy = scene.objects[0]
bpy.ops.object.select_all(action='TOGGLE')
obj_proxy.select = True
@@ -457,7 +458,7 @@
new_obj = palikka
import_no = 0
else:
- bpy.ops.import_scene.obj(filepath=obj_path,axis_forward='Y',axis_up='Z')
+ bpy.ops.import_scene.obj(filepath=obj_path,axis_forward='X',axis_up='Y')
new_obj = scene.objects[0]
scene.objects[0].coat3D.objectdir = export
if(path_on):
More information about the Bf-extensions-cvs
mailing list