powroupi / blender_mmd_tools

mmd_tools is a blender addon for importing Models and Motions of MikuMikuDance.
GNU General Public License v3.0
1.73k stars 278 forks source link

Blender not being able to open model #356

Closed TheAlePower closed 2 years ago

TheAlePower commented 2 years ago

OS : Windows 10 Using lastest version 0.7.1

bpy.ops.mmd_tools.import_model(filepath="C:\Users\TheAlePower\Desktop\MMD\UserFile\Model\Miku_Hatsune.pmd") Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\mmd_tools\operators\fileio.py", line 159, in execute self.translator = DictionaryEnum.get_translator(self.dictionary) File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\mmd_tools\translations.py", line 323, in get_translator return getTranslator(dictionary) File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\mmd_tools\translations.py", line 171, in getTranslator elif csvfile in bpy.data.texts: TypeError: bpy_prop_collection.contains__: expected a string or a tuple of strings

bpy.ops.mmd_tools.import_model(filepath="C:\Users\TheAlePower\Desktop\MMD\UserFile\Model\Miku_Hatsune.pmd")

nagadomi commented 2 years ago

See #348 . The issue is already fixed.

TheAlePower commented 2 years ago

how can it still happen if it's already fixed (and i'm using the latest version)?

TheAlePower commented 2 years ago

Resolved. Fault is on my part, i extracted the entire directory and not just mmd_tools into the addons Blender folder. For whoever has the same issue, the README.md's Usage sections contains your solution