Import a 3D Model and automatically assign and export animations
TypeScript
Add new contributor.
Scott Petrovic477754e74789
diff --git a/src/lib/EventListeners.ts b/src/lib/EventListeners.tsindex b7f452f..6ca52c6 100644--- a/src/lib/EventListeners.ts+++ b/src/lib/EventListeners.ts@@ -173,8 +173,11 @@ export class EventListeners {// Auto-align model to floorthis.bootstrap.ui.dom_auto_align_model_button?.addEventListener('click', () => {+ // move the mesh geometry data to the floorconst mesh_data = this.bootstrap.load_model_step.model_meshes()ModelCleanupUtility.move_model_to_floor(mesh_data)++ // move the transform widget to reset it to the new position on the canvasconst py = mesh_data.position.yif (py !== 0) {ModelCleanupUtility.translate_model_vertices(mesh_data, 0, py, 0)diff --git a/src/lib/Generators.ts b/src/lib/Generators.tsindex fbadab9..01a2b73 100644--- a/src/lib/Generators.ts+++ b/src/lib/Generators.ts@@ -28,11 +28,11 @@ export class Generators {<li>Quaternius: Base human model, rig, and animations. <a href="http://quaternius.com/" target="_blank" rel="noopener noreferrer">quaternius.com</a></li><li>Sketchpunklab: Provided algorithm to help retarget human rigs for animations. <a target="_blank" href="https://x.com/SketchpunkLabs">See social media account</a></li><li>Lino Emmenegger (oni-swr) - Adding custom animation importer.</li>+ <li>Marino - Added improved move functionality when importing model.</li><li>Three.js Contributors: For the amazing Three.js library. <a href="https://threejs.org/" target="_blank" rel="noopener noreferrer">threejs.org</a></li></ul>- <hr/>- <p>Check out the <a href="https://github.com/Mesh2Motion" target="_blank">project's guide</a> for instructions on contributing.+ <p style="margin-top: 1rem;">Check out the <a href="https://github.com/Mesh2Motion" target="_blank">project's guide</a> for instructions on contributing.</p></span>`diff --git a/src/styles.css b/src/styles.cssindex 103ae75..b382ea0 100644--- a/src/styles.css+++ b/src/styles.css@@ -57,6 +57,10 @@ body.light-theme img[src$=".png"] {filter: invert(0.7);}+ul {+ padding: 0.5rem;+}+nav {width: 100vw;height: var(--navigation-height);