Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

starting to update dragon animations a bit. do fix for fox rig and script

Scott Petrovic1e05bb31bb91
diff --git a/static/animations/dragon-animations.glb b/static/animations/dragon-animations.glb
index 5c7630b..4034d8e 100644
Binary files a/static/animations/dragon-animations.glb and b/static/animations/dragon-animations.glb differ
diff --git a/static/animations/quad-creature-animations.glb b/static/animations/quad-creature-animations.glb
index 120bd7a..035dba0 100644
Binary files a/static/animations/quad-creature-animations.glb and b/static/animations/quad-creature-animations.glb differ
diff --git a/static/blender/rigs/combine-and-export.py b/static/blender/rigs/combine-and-export.py
index 7bf6fc0..80b888d 100644
--- a/static/blender/rigs/combine-and-export.py
+++ b/static/blender/rigs/combine-and-export.py
@@ -20,7 +20,7 @@ import os
base_dir = r"C:\git\ModelMotionizer\static\blender\rigs"
# Define the rig type/folder
-rig_type = "dragon"
+rig_type = "fox"
# DO NOT NEED TO CHANGE BELOW THIS LINE
@@ -55,4 +55,5 @@ bpy.ops.export_scene.gltf(
export_yup=True, # Blender uses Z-up, three.js uses Y-up
export_def_bones=True, # only export deformation bones
use_visible=True, # hides bone shape collection objects
+ export_frame_range=True, # limit to playback range set in timeline (helps with looping)
)
\ No newline at end of file
diff --git a/static/blender/rigs/dragon/animation-dragon-idle-v2.blend b/static/blender/rigs/dragon/animation-dragon-idle-v2.blend
index fe83c22..e2987a1 100644
Binary files a/static/blender/rigs/dragon/animation-dragon-idle-v2.blend and b/static/blender/rigs/dragon/animation-dragon-idle-v2.blend differ
diff --git a/static/blender/rigs/dragon/animation-dragon-walk-v2.blend b/static/blender/rigs/dragon/animation-dragon-walk-v2.blend
index 0af91fd..3f71684 100644
Binary files a/static/blender/rigs/dragon/animation-dragon-walk-v2.blend and b/static/blender/rigs/dragon/animation-dragon-walk-v2.blend differ
diff --git a/static/blender/rigs/dragon/rig-dragon-v2.blend b/static/blender/rigs/dragon/rig-dragon-v2.blend
index e00fdb6..f67f8d6 100644
Binary files a/static/blender/rigs/dragon/rig-dragon-v2.blend and b/static/blender/rigs/dragon/rig-dragon-v2.blend differ
diff --git a/static/blender/rigs/fox/animation-fox-run-v2 .blend b/static/blender/rigs/fox/animation-fox-run-v2 .blend
index 26525cc..37a9463 100644
Binary files a/static/blender/rigs/fox/animation-fox-run-v2 .blend and b/static/blender/rigs/fox/animation-fox-run-v2 .blend differ
diff --git a/static/blender/rigs/fox/animation-fox-walk-v2.blend b/static/blender/rigs/fox/animation-fox-walk-v2.blend
index 3a7c1fc..9e43ac8 100644
Binary files a/static/blender/rigs/fox/animation-fox-walk-v2.blend and b/static/blender/rigs/fox/animation-fox-walk-v2.blend differ
diff --git a/static/blender/rigs/fox/rig-fox-v2.blend b/static/blender/rigs/fox/rig-fox-v2.blend
index 7d6747a..e61fe98 100644
Binary files a/static/blender/rigs/fox/rig-fox-v2.blend and b/static/blender/rigs/fox/rig-fox-v2.blend differ
diff --git a/static/rigs/rig-dragon.glb b/static/rigs/rig-dragon.glb
index c816db6..29918d1 100644
Binary files a/static/rigs/rig-dragon.glb and b/static/rigs/rig-dragon.glb differ