FlailingFog / KK-Blender-Porter-Pack

Plugin pack for exporting Koikatsu characters to Blender.
304 stars 28 forks source link

Error when importing KK model in to blender #537

Closed videoman614 closed 4 weeks ago

videoman614 commented 1 month ago

Found an incompatibility when importing this model from KK in to blender.

Tested with the default HarunoChika and it imports without issue, unsure what is incompatible with this card.

Traceback (most recent call last):
  File "/home/pc-chan/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/importing/modifymesh.py", line 47, in execute
    self.create_tear_shapekeys()
  File "/home/pc-chan/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/importing/modifymesh.py", line 591, in create_tear_shapekeys
    bpy.context.object.active_material_index = self.body.data.materials.find(self.body['SMR materials']['cf_O_face'][0])
TypeError: only strings are allowed as keys of ID properties

Error: Traceback (most recent call last):
  File "/home/pc-chan/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/importing/modifymesh.py", line 47, in execute
    self.create_tear_shapekeys()
  File "/home/pc-chan/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/importing/modifymesh.py", line 591, in create_tear_shapekeys
    bpy.context.object.active_material_index = self.body.data.materials.find(self.body['SMR materials']['cf_O_face'][0])
TypeError: only strings are allowed as keys of ID properties

Traceback (most recent call last):
  File "/home/pc-chan/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/importing/importbuttons.py", line 85, in execute
    function()
  File "/home/pc-chan/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/importing/importbuttons.py", line 60, in <lambda>
    lambda:bpy.ops.kkbp.modifymesh('INVOKE_DEFAULT'),
  File "/home/pc-chan/Documents/blender/3.6/scripts/modules/bpy/ops.py", line 111, in __call__
    ret = _op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
RuntimeError: Error: Traceback (most recent call last):
  File "/home/pc-chan/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/importing/modifymesh.py", line 47, in execute
    self.create_tear_shapekeys()
  File "/home/pc-chan/.config/blender/3.6/scripts/addons/KK-Blender-Porter-Pack-master/importing/modifymesh.py", line 591, in create_tear_shapekeys
    bpy.context.object.active_material_index = self.body.data.materials.find(self.body['SMR materials']['cf_O_face'][0])
TypeError: only strings are allowed as keys of ID properties

KK_176958.zip