Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle-Samuli Riihikoski <haikalle@gmail.com>2019-01-28 17:05:21 +0300
committerKalle-Samuli Riihikoski <haikalle@gmail.com>2019-01-28 17:05:51 +0300
commit3267eec939805e17b6fd3aaded869b63f0792820 (patch)
treeca65ad28a5e3d9563f976589bbc7fec855b3b75f /io_coat3D
parentd7bfc48b3307b7bf53ff69abb0ccd8b605a65598 (diff)
Improve 3dc->blender workflow
Diffstat (limited to 'io_coat3D')
-rw-r--r--io_coat3D/__init__.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py
index 6ef7ac50..272884a0 100644
--- a/io_coat3D/__init__.py
+++ b/io_coat3D/__init__.py
@@ -832,7 +832,7 @@ class SCENE_OT_import(bpy.types.Operator):
old_materials = bpy.data.materials.keys()
old_objects = bpy.data.objects.keys()
- bpy.ops.import_scene.fbx(filepath=new_applink_address, global_scale = 0.001, use_manual_orientation=True, axis_forward='-Z', axis_up='Y')
+ bpy.ops.import_scene.fbx(filepath=new_applink_address, global_scale = 1, use_manual_orientation=True, axis_forward='-Z', axis_up='Y', use_custom_normals=False)
new_materials = bpy.data.materials.keys()
new_objects = bpy.data.objects.keys()
@@ -850,6 +850,7 @@ class SCENE_OT_import(bpy.types.Operator):
bpy.data.objects[c_index].material_slots[0].material = bpy.data.materials[diff_mat[laskuri]]
laskuri += 1
+
bpy.ops.object.select_all(action='DESELECT')
for new_obj in bpy.context.collection.objects:
@@ -857,7 +858,7 @@ class SCENE_OT_import(bpy.types.Operator):
new_obj.select_set(True)
#bpy.ops.object.origin_set(type='GEOMETRY_ORIGIN')
#new_obj.rotation_euler = (0, 0, 0)
- new_obj.scale = (0.03, 0.03, 0.03)
+ #new_obj.scale = (0.01, 0.01, 0.01)
new_obj.coat3D.applink_firsttime = False
new_obj.select_set(False)
new_obj.coat3D.applink_address = new_applink_address
@@ -1128,10 +1129,6 @@ class SceneCoat3D(PropertyGroup):
name="FilePath",
subtype="FILE_PATH",
)
- cursor_loc: FloatVectorProperty(
- name="Cursor_loc",
- description="location"
- )
exchangedir: StringProperty(
name="FilePath",
subtype="DIR_PATH"
@@ -1140,14 +1137,6 @@ class SceneCoat3D(PropertyGroup):
name="FilePath",
subtype="DIR_PATH"
)
- wasactive: StringProperty(
- name="Pass active object",
- )
- import_box: BoolProperty(
- name="Import window",
- description="Allows to skip import dialog",
- default=True
- )
bring_retopo: BoolProperty(
name="Import window",
description="Allows to skip import dialog",