Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

.pmx importation fails with Japanese props #15

Closed
Jyzee opened this issue Apr 13, 2013 · 4 comments
Closed

.pmx importation fails with Japanese props #15

Jyzee opened this issue Apr 13, 2013 · 4 comments

Comments

@Jyzee
Copy link

Jyzee commented Apr 13, 2013

While trying to import a .pmx, I get that :

Traceback (most recent call last):
  File "/opt/blender-2.66/2.66/scripts/addons/blender26-meshio/__init__.py", line 85, in execute
    import_pmx._execute(**self.as_keywords(ignore=('filter_glob',)))
  File "/opt/blender-2.66/2.66/scripts/addons/blender26-meshio/import_pmx.py", line 608, in _execute
    import_pmx_model(filepath, reader.read_from_file(filepath), **kwargs)
  File "/opt/blender-2.66/2.66/scripts/addons/blender26-meshio/import_pmx.py", line 441, in import_pmx_model
    armature_object=__create_armature(model.bones, model.display_slots)
  File "/opt/blender-2.66/2.66/scripts/addons/blender26-meshio/import_pmx.py", line 315, in __create_armature
    p_bone=pose.bones[b.name]
KeyError: 'bpy_prop_collection[key]: key "左肩P" not found'

Maybe something to do with Japanese names ?
Let me know if you need the .pmx file.

@ousttrue
Copy link
Owner

It may be a problem peculiar to the model.
Please send pmx to ousttrue@gmail.com.

@Jyzee
Copy link
Author

Jyzee commented Apr 24, 2013

Late, but sent :)

@ousttrue
Copy link
Owner

Thank you for sending a model.
It has checked that a problem reappeared.
I begin to investigate the problem.

@ousttrue
Copy link
Owner

Since the head position of the bone in question and the position of a tail were the same, it was not able to exist in blender.
The code which shifts a little tail position was added.
It is version 2.7.4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants