-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support VRM 1.0 models and improve bone mapping
- Loading branch information
1 parent
cd00b1f
commit cf6f9a5
Showing
17 changed files
with
334 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.DS_Store | ||
/vrm_rigify.zip | ||
/.pdm-python | ||
/.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
rm -f vrm_rigify.zip | ||
zip vrm_rigify.zip ./vrm_rigify/*.py ./LICENSE.md | ||
zip vrm_rigify.zip ./vrm_rigify/__init__.py ./LICENSE.md |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[project] | ||
dependencies = [ | ||
"fake-bpy-module-4-1>=20240604", | ||
] | ||
requires-python = ">=3.11,<3.12" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
VRM_TEST_MODEL_PATH="$1" \ | ||
BLENDER_VRM_AUTOMATIC_LICENSE_CONFIRMATION=true \ | ||
blender --python "../vrm_rigify/__init__.py" --python "./test_harness.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import os | ||
import bpy | ||
|
||
# Import VRM model and generate rig. | ||
bpy.ops.import_scene.vrm(filepath=os.environ["VRM_TEST_MODEL_PATH"]) | ||
bpy.context.view_layer.objects.active = bpy.data.objects["Armature"] | ||
bpy.data.objects.remove(bpy.data.objects["Cube"]) | ||
bpy.ops.vrm_rigify.create_rig() | ||
|
||
# Parent meshes to generated rig. | ||
for mesh in bpy.data.objects["Armature"].children: | ||
if mesh.type == "MESH": | ||
mesh.modifiers["Armature"].object = bpy.data.objects["Armature.rig"] |
Oops, something went wrong.