feat: Add VRM Blender addon with complete import/export functionality
- Add core VRM addon infrastructure with manifest and registration - Add common utilities module with file system, logging, and conversion helpers - Add human bone mapper with support for multiple rigging standards (Mixamo, MMD, Unreal, Rigify, etc.) - Add VRM 0.x and 1.x format support with property groups and handlers - Add editor UI panels for VRM metadata, spring bones, and MToon materials - Add exporter with glTF2 extension support for VRM format serialization - Add importer with scene reconstruction and armature generation - Add MToon shader support with auto-setup and material migration - Add spring bone physics simulation with constraint handling - Add node constraint editor for advanced rigging control - Add comprehensive validation and error handling with user dialogs - Add scene watcher for real-time property synchronization - Add workspace management and preference system - Include Python cache files and Blender manifest configuration - This is the initial commit establishing the complete VRM addon ecosystem for Blender
This commit is contained in:
65
common/human_bone_mapper/ready_player_me_mapping.py
Normal file
65
common/human_bone_mapper/ready_player_me_mapping.py
Normal file
@@ -0,0 +1,65 @@
|
||||
# SPDX-License-Identifier: MIT OR GPL-3.0-or-later
|
||||
from collections.abc import Mapping
|
||||
from typing import Final
|
||||
|
||||
from ..vrm1.human_bone import HumanBoneSpecification, HumanBoneSpecifications
|
||||
|
||||
MAPPING: Final[Mapping[str, HumanBoneSpecification]] = {
|
||||
"Head": HumanBoneSpecifications.HEAD,
|
||||
"RightEye": HumanBoneSpecifications.RIGHT_EYE,
|
||||
"LeftEye": HumanBoneSpecifications.LEFT_EYE,
|
||||
"Neck": HumanBoneSpecifications.NECK,
|
||||
"Spine2": HumanBoneSpecifications.UPPER_CHEST,
|
||||
"Spine1": HumanBoneSpecifications.CHEST,
|
||||
"Spine": HumanBoneSpecifications.SPINE,
|
||||
"Hips": HumanBoneSpecifications.HIPS,
|
||||
"RightShoulder": HumanBoneSpecifications.RIGHT_SHOULDER,
|
||||
"RightArm": HumanBoneSpecifications.RIGHT_UPPER_ARM,
|
||||
"RightForeArm": HumanBoneSpecifications.RIGHT_LOWER_ARM,
|
||||
"RightHand": HumanBoneSpecifications.RIGHT_HAND,
|
||||
"LeftShoulder": HumanBoneSpecifications.LEFT_SHOULDER,
|
||||
"LeftArm": HumanBoneSpecifications.LEFT_UPPER_ARM,
|
||||
"LeftForeArm": HumanBoneSpecifications.LEFT_LOWER_ARM,
|
||||
"LeftHand": HumanBoneSpecifications.LEFT_HAND,
|
||||
"RightUpLeg": HumanBoneSpecifications.RIGHT_UPPER_LEG,
|
||||
"RightLeg": HumanBoneSpecifications.RIGHT_LOWER_LEG,
|
||||
"RightFoot": HumanBoneSpecifications.RIGHT_FOOT,
|
||||
"RightToeBase": HumanBoneSpecifications.RIGHT_TOES,
|
||||
"LeftUpLeg": HumanBoneSpecifications.LEFT_UPPER_LEG,
|
||||
"LeftLeg": HumanBoneSpecifications.LEFT_LOWER_LEG,
|
||||
"LeftFoot": HumanBoneSpecifications.LEFT_FOOT,
|
||||
"LeftToeBase": HumanBoneSpecifications.LEFT_TOES,
|
||||
"RightHandThumb1": HumanBoneSpecifications.RIGHT_THUMB_METACARPAL,
|
||||
"RightHandThumb2": HumanBoneSpecifications.RIGHT_THUMB_PROXIMAL,
|
||||
"RightHandThumb3": HumanBoneSpecifications.RIGHT_THUMB_DISTAL,
|
||||
"RightHandIndex1": HumanBoneSpecifications.RIGHT_INDEX_PROXIMAL,
|
||||
"RightHandIndex2": HumanBoneSpecifications.RIGHT_INDEX_INTERMEDIATE,
|
||||
"RightHandIndex3": HumanBoneSpecifications.RIGHT_INDEX_DISTAL,
|
||||
"RightHandMiddle1": HumanBoneSpecifications.RIGHT_MIDDLE_PROXIMAL,
|
||||
"RightHandMiddle2": HumanBoneSpecifications.RIGHT_MIDDLE_INTERMEDIATE,
|
||||
"RightHandMiddle3": HumanBoneSpecifications.RIGHT_MIDDLE_DISTAL,
|
||||
"RightHandRing1": HumanBoneSpecifications.RIGHT_RING_PROXIMAL,
|
||||
"RightHandRing2": HumanBoneSpecifications.RIGHT_RING_INTERMEDIATE,
|
||||
"RightHandRing3": HumanBoneSpecifications.RIGHT_RING_DISTAL,
|
||||
"RightHandPinky1": HumanBoneSpecifications.RIGHT_LITTLE_PROXIMAL,
|
||||
"RightHandPinky2": HumanBoneSpecifications.RIGHT_LITTLE_INTERMEDIATE,
|
||||
"RightHandPinky3": HumanBoneSpecifications.RIGHT_LITTLE_DISTAL,
|
||||
"LeftHandThumb1": HumanBoneSpecifications.LEFT_THUMB_METACARPAL,
|
||||
"LeftHandThumb2": HumanBoneSpecifications.LEFT_THUMB_PROXIMAL,
|
||||
"LeftHandThumb3": HumanBoneSpecifications.LEFT_THUMB_DISTAL,
|
||||
"LeftHandIndex1": HumanBoneSpecifications.LEFT_INDEX_PROXIMAL,
|
||||
"LeftHandIndex2": HumanBoneSpecifications.LEFT_INDEX_INTERMEDIATE,
|
||||
"LeftHandIndex3": HumanBoneSpecifications.LEFT_INDEX_DISTAL,
|
||||
"LeftHandMiddle1": HumanBoneSpecifications.LEFT_MIDDLE_PROXIMAL,
|
||||
"LeftHandMiddle2": HumanBoneSpecifications.LEFT_MIDDLE_INTERMEDIATE,
|
||||
"LeftHandMiddle3": HumanBoneSpecifications.LEFT_MIDDLE_DISTAL,
|
||||
"LeftHandRing1": HumanBoneSpecifications.LEFT_RING_PROXIMAL,
|
||||
"LeftHandRing2": HumanBoneSpecifications.LEFT_RING_INTERMEDIATE,
|
||||
"LeftHandRing3": HumanBoneSpecifications.LEFT_RING_DISTAL,
|
||||
"LeftHandPinky1": HumanBoneSpecifications.LEFT_LITTLE_PROXIMAL,
|
||||
"LeftHandPinky2": HumanBoneSpecifications.LEFT_LITTLE_INTERMEDIATE,
|
||||
"LeftHandPinky3": HumanBoneSpecifications.LEFT_LITTLE_DISTAL,
|
||||
}
|
||||
|
||||
|
||||
CONFIG: Final = ("Ready Player Me", MAPPING)
|
||||
Reference in New Issue
Block a user