Import a 3D Model and automatically assign and export animations
TypeScript
<!DOCTYPE html>
<html lang="en">
<head>
<title style="display: none">Explore - Mesh2Motion</title>
<link rel="icon" type="image/png" href="./images/favicon.png"/>
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body class="explore-page" style="margin: 0">
<!-- Script files-->
<script type="module" src="./marketing/MarketingBootstrap.ts"></script>
<!-- Stylesheets-->
<link href="./styles.css" rel="stylesheet" crossorigin="anonymous" />
<link rel="stylesheet" href="./radio-button-group.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./animation-player.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./dialog.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./settings-dropdown.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./marketing/marketing.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./offline.css" crossorigin="anonymous" />
<link rel="stylesheet" href="./lib/processes/animations-listing/props/props.css" crossorigin="anonymous" />
<nav>
<div style="display: inline-flex; align-items: center;">
<a id="logo-branding" href="https://mesh2motion.org">
<img src="./images/mesh2motion.svg" width="130" alt="Mesh2Motion logo" />
</a>
<span class="active-nav-item">Explore</span>
<a href="/create.html">Use Your Model</a>
<a href="/retarget/index.html">Use Your Rigged Model</a>
<a href="/composer/index.html">Remix</a>
</div>
<div style="display: inline-flex; align-items: center;">
<div id="top-nav-links-mount"></div>
</div>
</nav>
<div id="header-ui-mount"></div>
<aside class="model-selection-section">
<!-- populated dynamically from RigConfig -->
<h2 class="sidebar-heading">Rig</h2>
<div id="skeleton-buttons"></div>
<div id="variation-section" style="display: none">
<h2 class="sidebar-heading">Model</h2>
<div id="variation-grid" class="variation-grid">
<!-- cards populated dynamically from RigConfig -->
</div>
<div id="variation-loading-container" class="variation-loading-container" style="display: none">
<div class="variation-loading-track">
<span id="variation-loading-text" class="variation-loading-text">Loading model…</span>
<div id="variation-loading-bar" class="variation-loading-bar"></div>
</div>
</div>
</div>
</aside>
<div id="tool-panel">
<!-- create a radio button group. There are two options. Move Skeleton, Rotate Mesh -->
<div id="tool-selection-group">
<!-- <div style="margin-bottom: 1rem; padding: 0;">
<span id="current-step-label"></span>
</div> -->
<div id="load-skeleton-tools">
<span>
<span style="max-width: 220px">Rotate Model to face front <br/> (blue origin line)</span>
<div style="display: flex; flex-direction: row">
<button class="secondary-button" id="rotate-model-x-button">X</button>
<button class="secondary-button" id="rotate-model-y-button">Y</button>
<button class="secondary-button" id="rotate-model-z-button">Z</button>
</div>
</span>
<div style="display: flex; flex-direction: column; gap: 1rem;">
<span>Skeleton template:</span>
<select id="skeleton-selection">
<!-- populated dynamically from RigConfig -->
</select>
</div>
</div>
<span id="skeleton-step-actions">
<!-- back to load skeleton -->
<div class="display: flex; gap: 0.5rem;">
<button class="no-style-button" id="action_back_to_load_skeleton" >‹ Back</button>
<button id="action_bind_pose" >Bind pose</button>
</div>
</span>
<span id="skinned-step-animation-export-options">
<div id="animations-listing">
<!-- Filter textbox and tab switcher side by side -->
<div style="display: flex; gap: 1rem; align-items: flex-start;">
<!-- Tab switcher for Library vs Selected animations -->
<div class="pill-switch-group" aria-label="Animation view mode" style="margin: 0;">
<div class="pill-switch">
<input type="radio" id="animation-view-library" name="animation-view-mode" value="library" checked />
<label for="animation-view-library">Library</label>
<input type="radio" id="animation-view-selected" name="animation-view-mode" value="selected" />
<label for="animation-view-selected">Selected</label>
</div>
</div>
<!-- Filter textbox for animations -->
<span style="position: relative; flex: 1;">
<input type="text" id="animation-filter" placeholder="Filter">
</span>
</div>
<!-- Select all / Deselect all button and animation count -->
<div id="toggle-select-all-container">
<button id="toggle-select-all-animations" class="secondary-button">Select All</button>
<button id="animation-tag-filter-button" class="secondary-button" data-tippy-content="Filter by tag" aria-label="Filter by tag" style="display: none">
<img src="images/icons/tag.svg" alt="" width="20" height="20" />
<span id="animation-tag-filter-count" style="display: none">0</span>
</button>
<div id="animation-listing-count" style="white-space: nowrap;">0 animations</div>
</div>
<!-- loading progress when animations start getting larger. -->
<div id="animation-progress-loader-container" style="display: none">
<div id="loading-status-text">Loading animation data</div>
<div id="loading-progress-bar"></div>
<div id="current-file-progress-bar"></div>
</div>
<!-- javascript will populate this item with animations
that we get from the animations file(s) -->
<div id="animations-items"> </div>
<div class="download-actions-row">
<!-- testing the mirroring options. Hide this for now until we get a better implementation for per animations -->
<div style="display: none" class="styled-checkbox icon-toggle">
<input type="checkbox" id="mirror-animations-checkbox" name="mirror-animations" value="true" style="display:none;">
<label for="mirror-animations-checkbox" data-tippy-content="Mirror animations" tabindex="0">
<img class="action-icon" src="images/icons/mirror.svg" alt="Mirror animations" />
</label>
</div>
<button class="secondary-button" id="import-animations-button" data-tippy-content="Import GLB or FBX animations. Mesh2Motion rigs are supported, and Mixamo animations can be retargeted onto the Human rig." aria-label="Import GLB or FBX animations. Mesh2Motion rigs are supported, and Mixamo animations can be retargeted onto the Human rig.">
<img src="images/icons/upload.svg" alt="Upload" width="20" height="20" />
</button>
<input id="import-animations-input" type="file" accept=".glb,.fbx" multiple style="display:none" />
<div id="download-control-mount"></div>
</div>
</div>
</span>
</div>
</div> <!-- end tool-panel-->
<!-- floating props toggle and panel docked to the left of the tool panel -->
<div id="props-dock" style="display: none">
<button class="secondary-button" id="props-toggle-button" aria-expanded="false" aria-controls="props-panel" data-tippy-content="Attach props to the hands" aria-label="Attach props to the hands">
<img src="images/icons/props.svg" alt="Props" width="32" height="32" />
Props
</button>
<div id="props-panel" class="props-panel" role="region" aria-label="Props" hidden>
<div id="props-right-hand" class="prop-picker"></div>
<div id="props-left-hand" class="prop-picker"></div>
<button class="secondary-button" id="props-close-button" data-tippy-content="Close props" aria-label="Close props">
<img src="images/icons/props.svg" alt="" width="32" height="32" />
Props
</button>
</div>
</div>
<div id="animation-player-mount"></div>
<!-- 3d view control hit box. It is just a container to help with 3d view controls. -->
<div id="view-control-hitbox"></div>
<!-- build version information-->
<span id="build-version"></span>
</body>
</html>