Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Merge conflict resolution on create.html.

DarthMarino077669e00571
diff --cc src/create.html
index 7107aa8,936d1d4..da31d0f
--- a/src/create.html
+++ b/src/create.html
@@@ -332,151 -320,92 +332,149 @@@
<p class="step-instructions">Select animations you want to export by checking them by animation</p>
</span> -->
- <span id="skinned-step-animation-export-options">
-
- <div id="animations-listing">
-
- <!-- Filter textbox for animations -->
- <div id="animation-listing-count">0</div>
- <input type="text" id="animation-filter" placeholder="Filter animations...">
-
- <!-- 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>
-
-
- <!-- slider to control arm extension (hide this feature until the base functionality is more stable) -->
- <div id="arm-extension-options">
- <div style="
- display: flex;
- flex-direction: row;
- align-items: center;
- gap: 1rem;
- justify-content: center;
- ">
- <label style="display:inline-flex">Expand / Contract Arms</label>
- <span class="material-symbols-outlined" data-tippy-content="Fine-tune arm spread across all animations for heavier or skinnier characters.">help</span>
-
- <button class="secondary-button" id="reset-arm-extension-button">
- <img src="images/icons/reset.svg" alt="Reset Arm Extension" width="20" height="20" />
- </button>
- </div>
-
- <div style="display: flex; flex-direction: row; gap: 1rem; justify-content: flex-start; align-items: center;">
- <input type="number" id="extend-arm-numeric-input" name="arm-extend-input" value="0" min="-70" max="100" step="1">
- <span class="suffix-unit">%</span>
- <input id="extend-arm-range-input" style="flex-grow: 1;" type="range" min="-70" max="100" value="0" />
- </div>
-
- <hr />
-
- </div>
-
-
- <div style="display: flex; gap: 0.5rem;">
- <button class="no-style-button" id="action_back_to_edit_skeleton" >&#x2039; Back</button>
-
- <!-- testing the mirroring options -->
- <div 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 animations. Only Mesh2Motion rigs are supported at this time." aria-label="Import GLB animations. Only Mesh2Motion rigs are supported at this time.">
- <span class="material-symbols-outlined">upload</span>
- </button>
- <input id="import-animations-input" type="file" accept=".glb" multiple style="display:none" />
-
- <button id="export-button" data-tippy-content="Exporting will combine all animations into a single GLB file.">
- <span class="button-icon-group">
- <span class="material-symbols-outlined">save_alt</span>
- <span>Download <span id="animation-selection-count">0</span></span>
- </span>
- </button>
- <a id="download-hidden-link" href="#" style="display:none"></a>
-
- </div>
-
-
-
- </div>
-
-
- </span>
-
+ <span id="skinned-step-animation-export-options">
+ <div id="animations-listing">
+ <!-- Filter textbox for animations -->
+ <div id="animation-listing-count">0</div>
+ <input
+ type="text"
+ id="animation-filter"
+ placeholder="Filter animations..."
+ />
+
+ <!-- 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>
- </div>
+ <!-- javascript will populate this item with animations
+ that we get from the animations file(s) -->
+ <div id="animations-items"></div>
+
+ <!-- slider to control arm extension (hide this feature until the base functionality is more stable) -->
- <div id="a-pose-correction-options">
++ <div id="arm-extension-options">
+ <div
+ style="
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ gap: 1rem;
+ justify-content: center;
+ "
+ >
- <label style="display: inline-flex"
- >A-Pose Correction - Open Arms</label
- >
++ <label style="display: inline-flex">Expand / Contract Arms</label>
+ <span
+ class="material-symbols-outlined"
- data-tippy-content="If your model uses an A-Pose, this will help expand/contract arms for all animations"
++ data-tippy-content="Fine-tune arm spread across all animations for heavier or skinnier characters."
+ >help</span
+ >
+
- <button class="secondary-button" id="reset-a-pose-button">
++ <button class="secondary-button" id="reset-arm-extension-button">
+ <img
+ src="images/icons/reset.svg"
- alt="Reset A-Pose"
++ alt="Reset Arm Extension"
+ width="20"
+ height="20"
+ />
+ </button>
+ </div>
+
+ <div
+ style="
+ display: flex;
+ flex-direction: row;
+ gap: 1rem;
+ justify-content: flex-start;
+ align-items: center;
+ "
+ >
+ <input
+ type="number"
+ id="extend-arm-numeric-input"
+ name="arm-extend-input"
+ value="0"
+ min="-70"
+ max="100"
+ step="1"
+ />
+ <span class="suffix-unit">%</span>
+ <input
+ id="extend-arm-range-input"
+ style="flex-grow: 1"
+ type="range"
+ min="-70"
+ max="100"
+ value="0"
+ />
+ </div>
+
+ <hr />
+ </div>
- </div> <!-- end tool-panel-->
+ <div style="display: flex; gap: 0.5rem">
+ <button class="no-style-button" id="action_back_to_edit_skeleton">
+ &#x2039; Back
+ </button>
+
+ <!-- testing the mirroring options -->
+ <div 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 animations. Only Mesh2Motion rigs are supported at this time."
+ aria-label="Import GLB animations. Only Mesh2Motion rigs are supported at this time."
+ >
+ <span class="material-symbols-outlined">upload</span>
+ </button>
+ <input
+ id="import-animations-input"
+ type="file"
+ accept=".glb"
+ multiple
+ style="display: none"
+ />
+
+ <button
+ id="export-button"
+ data-tippy-content="Exporting will combine all animations into a single GLB file."
+ >
+ <span class="button-icon-group">
+ <span class="material-symbols-outlined">save_alt</span>
+ <span
+ >Download
+ <span id="animation-selection-count">0</span></span
+ >
+ </span>
+ </button>
+ <a id="download-hidden-link" href="#" style="display: none"></a>
+ </div>
+ </div>
+ </span>
+ </div>
+ </div>
+ <!-- end tool-panel-->
<!-- Free-floating Animation Player -->
<div id="animation-player">