Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Remove the art assets since it now is in the new assets repository

Scott Petrovicf96db66d53b4
diff --git a/art-source/PassionOne-Black.ttf b/art-source/PassionOne-Black.ttf
deleted file mode 100644
index 0f61337..0000000
Binary files a/art-source/PassionOne-Black.ttf and /dev/null differ
diff --git a/art-source/PassionOne-Bold.ttf b/art-source/PassionOne-Bold.ttf
deleted file mode 100644
index 25a35e4..0000000
Binary files a/art-source/PassionOne-Bold.ttf and /dev/null differ
diff --git a/art-source/PassionOne-Regular.ttf b/art-source/PassionOne-Regular.ttf
deleted file mode 100644
index 099be0f..0000000
Binary files a/art-source/PassionOne-Regular.ttf and /dev/null differ
diff --git a/art-source/mesh2motion.af b/art-source/mesh2motion.af
deleted file mode 100644
index 9067016..0000000
Binary files a/art-source/mesh2motion.af and /dev/null differ
diff --git a/art-source/mouse-icons.af b/art-source/mouse-icons.af
deleted file mode 100644
index 95946db..0000000
Binary files a/art-source/mouse-icons.af and /dev/null differ
diff --git a/art-source/tool-icons.af b/art-source/tool-icons.af
deleted file mode 100644
index f151182..0000000
Binary files a/art-source/tool-icons.af and /dev/null differ
diff --git a/static/blender/models/DragonTexture.png b/static/blender/models/DragonTexture.png
deleted file mode 100644
index 11b4dd5..0000000
Binary files a/static/blender/models/DragonTexture.png and /dev/null differ
diff --git a/static/blender/models/color-palette.png b/static/blender/models/color-palette.png
deleted file mode 100644
index 1087be0..0000000
Binary files a/static/blender/models/color-palette.png and /dev/null differ
diff --git a/static/blender/models/model-bird.blend b/static/blender/models/model-bird.blend
deleted file mode 100644
index 972b3b1..0000000
Binary files a/static/blender/models/model-bird.blend and /dev/null differ
diff --git a/static/blender/models/model-dinosaur.blend b/static/blender/models/model-dinosaur.blend
deleted file mode 100644
index cb7c64e..0000000
Binary files a/static/blender/models/model-dinosaur.blend and /dev/null differ
diff --git a/static/blender/models/model-dragon.blend b/static/blender/models/model-dragon.blend
deleted file mode 100644
index eb90527..0000000
Binary files a/static/blender/models/model-dragon.blend and /dev/null differ
diff --git a/static/blender/models/model-fox.blend b/static/blender/models/model-fox.blend
deleted file mode 100644
index ed6d2f2..0000000
Binary files a/static/blender/models/model-fox.blend and /dev/null differ
diff --git a/static/blender/models/model-human.blend b/static/blender/models/model-human.blend
deleted file mode 100644
index e27cb5b..0000000
Binary files a/static/blender/models/model-human.blend and /dev/null differ
diff --git a/static/blender/rigs/bird/animation-bird-flap-v2.blend b/static/blender/rigs/bird/animation-bird-flap-v2.blend
deleted file mode 100644
index 24064ca..0000000
Binary files a/static/blender/rigs/bird/animation-bird-flap-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/bird/animation-bird-glide-v2.blend b/static/blender/rigs/bird/animation-bird-glide-v2.blend
deleted file mode 100644
index 2327f31..0000000
Binary files a/static/blender/rigs/bird/animation-bird-glide-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/bird/animation-bird-idle-v2.blend b/static/blender/rigs/bird/animation-bird-idle-v2.blend
deleted file mode 100644
index 79c4fb3..0000000
Binary files a/static/blender/rigs/bird/animation-bird-idle-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/bird/animation-bird-walk-v2.blend b/static/blender/rigs/bird/animation-bird-walk-v2.blend
deleted file mode 100644
index 179089a..0000000
Binary files a/static/blender/rigs/bird/animation-bird-walk-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/bird/rig-bird-v2.blend b/static/blender/rigs/bird/rig-bird-v2.blend
deleted file mode 100644
index 39422ee..0000000
Binary files a/static/blender/rigs/bird/rig-bird-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/combine-and-export.py b/static/blender/rigs/combine-and-export.py
deleted file mode 100644
index 80b888d..0000000
--- a/static/blender/rigs/combine-and-export.py
+++ /dev/null
@@ -1,59 +0,0 @@
-import bpy
-import os
-
-## WHAT IS THIS SCRIPT FOR?
-# Each BLEND file only has one animation action. This script consolidates all these actions and
-# creates one GLB file that the Mesh2Motion tool can load.
-# This will make loading faster since it will be one HTTP request
-# if there gets to be a ton of animations, we can revisit this to split things apart.
-
-## INSTRUCTIONS ON HOW TO RUN
-# 1. Open the rig-bird.blend file in Blender. This process should work for all the rig files
-# 2. Open a "Text Editor" view and click New to create a new text area
-# 3. Copy and paste this script into the text area
-# 4. Update the path below to point to the rig you want to create a GLB for
-# 5. Click the "Run Script" (play) button
-# 6. You can put the GLB file in the static > animations folder overwriting the old rig one
-
-
-# Define the directory containing the Blender RIG files
-base_dir = r"C:\git\ModelMotionizer\static\blender\rigs"
-
-# Define the rig type/folder
-rig_type = "fox"
-
-
-# DO NOT NEED TO CHANGE BELOW THIS LINE
-#----------------------------------------------------
-
-# Define the output file path. It will be saved in the same directory as the input files
-blend_dir = os.path.join(base_dir, rig_type)
-output_file = os.path.join(blend_dir, f"{rig_type}-animations.glb")
-
-
-# Iterate over each Blender file
-for file in os.listdir(blend_dir):
- if file.endswith(".blend") and "animation" in file.lower():
- # Append actions from the file
- filepath = os.path.join(blend_dir, file)
- with bpy.data.libraries.load(filepath) as (data_from, data_to):
- data_to.actions = data_from.actions
-
-# Export the combined actions to a GLB file
-# select just the armature and mesh objects we want to export
-export_objects = [obj for obj in bpy.context.scene.objects if obj.type in ['ARMATURE', 'MESH']]
-for obj in export_objects:
- obj.select_set(True)
-
-
-bpy.ops.export_scene.gltf(
- filepath=output_file,
- export_format="GLB",
- export_animations=True,
- export_nla_strips=False, # Export actions instead of NLA strips
- use_selection=True,
- 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/dinosaur/rig-dinosaur.blend b/static/blender/rigs/dinosaur/rig-dinosaur.blend
deleted file mode 100644
index 20a4ba3..0000000
Binary files a/static/blender/rigs/dinosaur/rig-dinosaur.blend and /dev/null differ
diff --git a/static/blender/rigs/dragon/animation-dragon-flap-v2.blend b/static/blender/rigs/dragon/animation-dragon-flap-v2.blend
deleted file mode 100644
index 9719677..0000000
Binary files a/static/blender/rigs/dragon/animation-dragon-flap-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/dragon/animation-dragon-idle-v2.blend b/static/blender/rigs/dragon/animation-dragon-idle-v2.blend
deleted file mode 100644
index 9efdb87..0000000
Binary files a/static/blender/rigs/dragon/animation-dragon-idle-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/dragon/animation-dragon-walk-v2.blend b/static/blender/rigs/dragon/animation-dragon-walk-v2.blend
deleted file mode 100644
index 847ccaa..0000000
Binary files a/static/blender/rigs/dragon/animation-dragon-walk-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/dragon/rig-dragon-v2.blend b/static/blender/rigs/dragon/rig-dragon-v2.blend
deleted file mode 100644
index a20b193..0000000
Binary files a/static/blender/rigs/dragon/rig-dragon-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-bark-v2.blend b/static/blender/rigs/fox/animation-fox-bark-v2.blend
deleted file mode 100644
index e9fc844..0000000
Binary files a/static/blender/rigs/fox/animation-fox-bark-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-bite-v2.blend b/static/blender/rigs/fox/animation-fox-bite-v2.blend
deleted file mode 100644
index 65c3025..0000000
Binary files a/static/blender/rigs/fox/animation-fox-bite-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-death-v2.blend b/static/blender/rigs/fox/animation-fox-death-v2.blend
deleted file mode 100644
index 18450be..0000000
Binary files a/static/blender/rigs/fox/animation-fox-death-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-fall-v2.blend b/static/blender/rigs/fox/animation-fox-fall-v2.blend
deleted file mode 100644
index e1077a9..0000000
Binary files a/static/blender/rigs/fox/animation-fox-fall-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-fetch-v2.blend b/static/blender/rigs/fox/animation-fox-fetch-v2.blend
deleted file mode 100644
index 3c83e2b..0000000
Binary files a/static/blender/rigs/fox/animation-fox-fetch-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-howl-v2.blend b/static/blender/rigs/fox/animation-fox-howl-v2.blend
deleted file mode 100644
index 4c1592b..0000000
Binary files a/static/blender/rigs/fox/animation-fox-howl-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-idle-alert.blend b/static/blender/rigs/fox/animation-fox-idle-alert.blend
deleted file mode 100644
index d8f17af..0000000
Binary files a/static/blender/rigs/fox/animation-fox-idle-alert.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-idle-v2.blend b/static/blender/rigs/fox/animation-fox-idle-v2.blend
deleted file mode 100644
index 24721c6..0000000
Binary files a/static/blender/rigs/fox/animation-fox-idle-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-jump-v2.blend b/static/blender/rigs/fox/animation-fox-jump-v2.blend
deleted file mode 100644
index 3513728..0000000
Binary files a/static/blender/rigs/fox/animation-fox-jump-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-run-v2 .blend b/static/blender/rigs/fox/animation-fox-run-v2 .blend
deleted file mode 100644
index 37a9463..0000000
Binary files a/static/blender/rigs/fox/animation-fox-run-v2 .blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-sit-v2.blend b/static/blender/rigs/fox/animation-fox-sit-v2.blend
deleted file mode 100644
index 19eb88c..0000000
Binary files a/static/blender/rigs/fox/animation-fox-sit-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-sneak-v2.blend b/static/blender/rigs/fox/animation-fox-sneak-v2.blend
deleted file mode 100644
index 3578f06..0000000
Binary files a/static/blender/rigs/fox/animation-fox-sneak-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/animation-fox-walk-v2.blend b/static/blender/rigs/fox/animation-fox-walk-v2.blend
deleted file mode 100644
index 9e43ac8..0000000
Binary files a/static/blender/rigs/fox/animation-fox-walk-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/fox/rig-fox-v2.blend b/static/blender/rigs/fox/rig-fox-v2.blend
deleted file mode 100644
index 682dc94..0000000
Binary files a/static/blender/rigs/fox/rig-fox-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-angry-v2.blend b/static/blender/rigs/human/animation-human-angry-v2.blend
deleted file mode 100644
index 318e5c8..0000000
Binary files a/static/blender/rigs/human/animation-human-angry-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-bow-v2.blend b/static/blender/rigs/human/animation-human-bow-v2.blend
deleted file mode 100644
index 2cd842f..0000000
Binary files a/static/blender/rigs/human/animation-human-bow-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-confused-v2.blend b/static/blender/rigs/human/animation-human-confused-v2.blend
deleted file mode 100644
index ec010ac..0000000
Binary files a/static/blender/rigs/human/animation-human-confused-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-consume-powerup-v2.blend b/static/blender/rigs/human/animation-human-consume-powerup-v2.blend
deleted file mode 100644
index 105a407..0000000
Binary files a/static/blender/rigs/human/animation-human-consume-powerup-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-crawl-RM-v2.blend b/static/blender/rigs/human/animation-human-crawl-RM-v2.blend
deleted file mode 100644
index 30f55e6..0000000
Binary files a/static/blender/rigs/human/animation-human-crawl-RM-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-crawl-v2.blend b/static/blender/rigs/human/animation-human-crawl-v2.blend
deleted file mode 100644
index 5534f8e..0000000
Binary files a/static/blender/rigs/human/animation-human-crawl-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-dance-body-roll-v2.blend b/static/blender/rigs/human/animation-human-dance-body-roll-v2.blend
deleted file mode 100644
index d127e50..0000000
Binary files a/static/blender/rigs/human/animation-human-dance-body-roll-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-dance-charleston-v2.blend b/static/blender/rigs/human/animation-human-dance-charleston-v2.blend
deleted file mode 100644
index cc20cbd..0000000
Binary files a/static/blender/rigs/human/animation-human-dance-charleston-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-dance-reach-hip-v2.blend b/static/blender/rigs/human/animation-human-dance-reach-hip-v2.blend
deleted file mode 100644
index c536dfc..0000000
Binary files a/static/blender/rigs/human/animation-human-dance-reach-hip-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-defend-v2.blend b/static/blender/rigs/human/animation-human-defend-v2.blend
deleted file mode 100644
index 726b0fd..0000000
Binary files a/static/blender/rigs/human/animation-human-defend-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-head-nod-v2.blend b/static/blender/rigs/human/animation-human-head-nod-v2.blend
deleted file mode 100644
index 34fe5f4..0000000
Binary files a/static/blender/rigs/human/animation-human-head-nod-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-idle-listening-v2.blend b/static/blender/rigs/human/animation-human-idle-listening-v2.blend
deleted file mode 100644
index 21924a4..0000000
Binary files a/static/blender/rigs/human/animation-human-idle-listening-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-meditate-v2.blend b/static/blender/rigs/human/animation-human-meditate-v2.blend
deleted file mode 100644
index a02e385..0000000
Binary files a/static/blender/rigs/human/animation-human-meditate-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-power-up-v2.blend b/static/blender/rigs/human/animation-human-power-up-v2.blend
deleted file mode 100644
index 2d1122d..0000000
Binary files a/static/blender/rigs/human/animation-human-power-up-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-reject-v2.blend b/static/blender/rigs/human/animation-human-reject-v2.blend
deleted file mode 100644
index cd90b81..0000000
Binary files a/static/blender/rigs/human/animation-human-reject-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-run-anime-v2.blend b/static/blender/rigs/human/animation-human-run-anime-v2.blend
deleted file mode 100644
index 99c313e..0000000
Binary files a/static/blender/rigs/human/animation-human-run-anime-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-shiver-v2.blend b/static/blender/rigs/human/animation-human-shiver-v2.blend
deleted file mode 100644
index 3c89ba1..0000000
Binary files a/static/blender/rigs/human/animation-human-shiver-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-throw-ball-v2.blend b/static/blender/rigs/human/animation-human-throw-ball-v2.blend
deleted file mode 100644
index 3096b00..0000000
Binary files a/static/blender/rigs/human/animation-human-throw-ball-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-tired-hunched-v2.blend b/static/blender/rigs/human/animation-human-tired-hunched-v2.blend
deleted file mode 100644
index 774a004..0000000
Binary files a/static/blender/rigs/human/animation-human-tired-hunched-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-tired-kneeling-v2.blend b/static/blender/rigs/human/animation-human-tired-kneeling-v2.blend
deleted file mode 100644
index 70f5645..0000000
Binary files a/static/blender/rigs/human/animation-human-tired-kneeling-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-two-hand-blast-v2.blend b/static/blender/rigs/human/animation-human-two-hand-blast-v2.blend
deleted file mode 100644
index bd05f62..0000000
Binary files a/static/blender/rigs/human/animation-human-two-hand-blast-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/animation-human-victory-v2.blend b/static/blender/rigs/human/animation-human-victory-v2.blend
deleted file mode 100644
index 10b2696..0000000
Binary files a/static/blender/rigs/human/animation-human-victory-v2.blend and /dev/null differ
diff --git a/static/blender/rigs/human/rig-human-v2.blend b/static/blender/rigs/human/rig-human-v2.blend
deleted file mode 100644
index 41d3740..0000000
Binary files a/static/blender/rigs/human/rig-human-v2.blend and /dev/null differ