Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug When trying to integrates armatures with Koikatsu pmx exported model #23

Closed
OneGraves opened this issue May 6, 2021 · 6 comments
Assignees
Labels
armature enhancement New feature or request

Comments

@OneGraves
Copy link

When exporting a Koikatsu model into pmx, then importing it to blender. When i watn to integrate the rigify rig to the mmd armature i have this error call :
Python: Traceback (most recent call last):
File "C:\Users\OneGraves\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\mmd_uuunyaa_tools\editors\operators.py", line 227, in execute
rigify_armature_object.imitate_mmd_bone_structure(mmd_armature_object)
File "C:\Users\OneGraves\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\mmd_uuunyaa_tools\editors\armatures.py", line 1967, in imitate_mmd_bone_structure
eye_height_translation_vector = Vector([0.0, 0.0, mmd_edit_bones['左目'].head[2] - rig_edit_bones['ORG-eye.L'].head[2]])
KeyError: '左目'

location: :-1

@UuuNyaa
Copy link
Owner

UuuNyaa commented May 6, 2021

@OneGraves Thanks for the report.
It seems that there are not enough bones (eg. 左目, 右目, ...) that the MMD model should have.
Can you share the pmx file you used with me to investigate the cause?

@UuuNyaa UuuNyaa added enhancement New feature or request armature labels May 6, 2021
@OneGraves
Copy link
Author

Hello again and sorry for the late answer

@OneGraves OneGraves reopened this May 9, 2021
@OneGraves
Copy link
Author

@UuuNyaa
Copy link
Owner

UuuNyaa commented May 10, 2021

@OneGraves Thanks for sharing.

@UuuNyaa
Copy link
Owner

UuuNyaa commented May 13, 2021

@OneGraves I've solved the problem.
Fixed release is https://github.com/UuuNyaa/blender_mmd_uuunyaa_tools/releases/tag/v0.5.5

You can load a MMD motion in the following steps.

  1. Add Metarig with Clean Koikatsu Armature check
    add_metarig
  2. Generate Rig
  3. Integrate Armatures and then Apply MMD rest pose
    integrate_and_pose
  4. load a motion with Treat Current Pose as Rest Pose check
    move

Shape keys is not supported.
How do you use the shape keys in koikatsu exported models?

@UuuNyaa UuuNyaa self-assigned this May 13, 2021
@OneGraves
Copy link
Author

OneGraves commented May 13, 2021 via email

@UuuNyaa UuuNyaa closed this as completed Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
armature enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants