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

PMX shape key export needs bone group '表情' #28

Open
Hogarth-MMD opened this issue Jun 3, 2015 · 0 comments
Open

PMX shape key export needs bone group '表情' #28

Hogarth-MMD opened this issue Jun 3, 2015 · 0 comments

Comments

@Hogarth-MMD
Copy link
Contributor

Pymeshio does not automatically create the essential bone group '表情' when exporting a .pmx model. Therefore there is no display panel for morphs and MMD will crash when you import the model.
Googleが翻訳します:
Pymeshioは自動的に必須の骨のグループを作成していない「表情」.pmxモデルをエクスポートするとき。そのため、モデルをインポートすると、モーフとMMDには、表示パネルがクラッシュしませんがあります。

import bpy

# adds an empty bone group named '表情' if this bone group does not already exist. An essential bug fix for exporting shape keys.
for m in active.modifiers:
    if m.type == 'ARMATURE':
        if '表情' not in m.object.pose.bone_groups.keys():
            m.object.pose.bone_groups.new('表情')
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

1 participant