michael-gh1 / Addons-And-Tools-For-Blender-miHoYo-Shaders

Blender Addons and Tools for streamlining the character model setup when using HoYoverse Shaders.
GNU General Public License v3.0
190 stars 11 forks source link

Error: Run Entire Set-Up and Set Up Chracter #122

Open honestcactus opened 1 month ago

honestcactus commented 1 month ago

Tested in Blender 3.4, 4.0, 4.1

Attempting to Set Up Character results in the same error message. Tested with 4 different characters from varying sources.

3.4 & 4.0

Python: Traceback (most recent call last):
  File "\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\setup_wizard\genshin_import_character_model.py", line 83, in execute
    self.import_character_model(character_model_file_path_or_directory, is_character_model_file)
  File "\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\setup_wizard\genshin_import_character_model.py", line 115, in import_character_model
    bpy.ops.better_import.fbx(
  File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 107, in __call__
    ret = _op_call(self.idname_py(), kw, C_exec, C_undo)
TypeError: Converting py args to operator properties:  BETTER_IMPORT_OT_fbx.filepath doesn't support None from string types

4.1

Python: Traceback (most recent call last):
  File "\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\setup_wizard\genshin_import_character_model.py", line 83, in execute
    self.import_character_model(character_model_file_path_or_directory, is_character_model_file)
  File "\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\setup_wizard\genshin_import_character_model.py", line 115, in import_character_model
    bpy.ops.better_import.fbx(
  File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\bpy\ops.py", line 107, in __call__
    ret = _op_call(self.idname_py(), kw, C_exec, C_undo)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Converting py args to operator properties:  BETTER_IMPORT_OT_fbx.filepath doesn't support None from string types
michael-gh1 commented 1 month ago

Hi @honestcactus, looks like the error you're getting is the same for each of the versions you tried.

While the addon doesn't support 3.4 and 4.1, I do think the issue you're specifically having is unrelated to the Blender version you're using.

This error suggests to me that the Setup Wizard is not finding an .fbx file in the folder you are selecting. Could you provide your setup (folder structure, where is the .fbx file and what you're selecting) and steps to reproduce your issue?

For example, I'm able to reproduce this error if I select a folder with no .fbx file in it. But if I select the exact .fbx file or the folder containing the .fbx file, I am able to successfully import the character model.

zhangjiading152 commented 1 month ago

Hello, the tutorial address you linked cannot be opened and the display is invalid. Can you re-upload the video tutorial?

honestcactus commented 4 weeks ago

Hi @honestcactus, looks like the error you're getting is the same for each of the versions you tried.

While the addon doesn't support 3.4 and 4.1, I do think the issue you're specifically having is unrelated to the Blender version you're using.

This error suggests to me that the Setup Wizard is not finding an .fbx file in the folder you are selecting. Could you provide your setup (folder structure, where is the .fbx file and what you're selecting) and steps to reproduce your issue?

For example, I'm able to reproduce this error if I select a folder with no .fbx file in it. But if I select the exact .fbx file or the folder containing the .fbx file, I am able to successfully import the character model.

Ah that seems to be the issue, the official models are offered as .pmx not .fbx files. Here's is one folder in question. image

I did also attempt to import the .pmx model via a MMD addon but that doesn't seem to work either.