veryfancypants / hs2_blender_export

35 stars 4 forks source link

Import Issues #6

Open Jerimyhawk opened 6 months ago

Jerimyhawk commented 6 months ago

Constantly running into the following error when importing my model. I am a first time user of this plugin so bear with me!

Trying to texture 001 as clothing Traceback (most recent call last): File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\hs2_blender_export-main__init__.py", line 892, in execute arm=importer.import_body(self.filepath, File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\hs2_blender_export-main\importer.py", line 1019, in import_body load_textures(arm, body, hair_color, eye_color, suffix) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\hs2_blender_export-main\importer.py", line 451, in load_textures m = mesh.materials[0] IndexError: bpy_prop_collection[index]: index 0 out of range, size 0

veryfancypants commented 6 months ago

One of the clothing items (or possibly hair items) has no material on it. This is unexpected and I've never seen this behavior. I'll work around it, but check that your export settings match what's shown in the screenshot in the readme.

timm1k commented 3 months ago

I had the same, for me it was missing "Create generic shader/materials" option on export