From ef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5 Mon Sep 17 00:00:00 2001 From: Owl Date: Thu, 21 Aug 2025 20:07:13 -0400 Subject: all the stuff --- obj_neokclcreate_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'obj_neokclcreate_import.py') diff --git a/obj_neokclcreate_import.py b/obj_neokclcreate_import.py index 1b63633..975112d 100644 --- a/obj_neokclcreate_import.py +++ b/obj_neokclcreate_import.py @@ -21,7 +21,7 @@ def import_obj_neokclcreate(context, filepath): if (o.select == True): obj = o break - blender_funcs.select_obj(scene, obj, False) + blender_funcs.select_obj(obj, False, "OBJECT") obj.scale = obj.scale / 100 bpy.ops.object.transform_apply(location = True, rotation = True, scale = True) @@ -35,6 +35,7 @@ def import_obj_neokclcreate(context, filepath): cur_mat_name = re.sub("^(.*?)\| ", "", mat.name) # iterate over all the mesh faces for face in obj.data.polygons: + print(face) face_mat = obj.material_slots[face.material_index] face_mat_name = re.sub("^(.*?)\| ", "", face_mat.name) # material with the same name found @@ -65,7 +66,6 @@ from bpy.props import StringProperty, BoolProperty, EnumProperty from bpy.types import Operator class import_neokclcreate_obj(Operator, ExportHelper): - """Import a Collada file from SuperBMD (SuperBMD only)""" bl_idname = "import_scene.neokclcreate_obj" bl_label = "Import NeoKCLCreate OBJ (.OBJ)" -- cgit v1.2.3-70-g09d2