Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Move the toggle bone display out of the tool area to give more room for import animation

Scott Petrovic3eeb92849a2e
diff --git a/src/create.html b/src/create.html
index 9ff290e..f732aa4 100644
--- a/src/create.html
+++ b/src/create.html
@@ -44,6 +44,15 @@
<!-- Top toolbar with mouse controls -->
<div id="header-ui">
+
+ <!-- checkbox option to show skeleton -->
+ <div id="skeleton-toggle" class="styled-checkbox icon-toggle" >
+ <input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">
+ <label for="show-skeleton-checkbox" data-tippy-content="Show skeleton" tabindex="0">
+ <img src="./images/icons/bone-display.svg" width="30" height="30" alt="Show skeleton" />
+ </label>
+ </div>
+
<div>
<img src="images/mouse-left.svg" height="30" width="30" style="vertical-align: middle;"/> Rotate
</div>
@@ -376,15 +385,6 @@
</button>
<input id="import-animations-input" type="file" accept=".glb" multiple style="display:none" />
-
- <!-- checkbox option to show skeleton -->
- <div class="styled-checkbox icon-toggle">
- <input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">
- <label for="show-skeleton-checkbox" data-tippy-content="Show skeleton" tabindex="0">
- <img src="images/icons/bone-display.svg" width="30" height="30" alt="Show skeleton" />
- </label>
- </div>
-
<button id="export-button" title="Export animations. Make sure to select the animations you want to export first.">
<span class="button-icon-group">
<span class="material-symbols-outlined">save_alt</span>
diff --git a/src/index.html b/src/index.html
index 8bafa46..a76de90 100644
--- a/src/index.html
+++ b/src/index.html
@@ -45,6 +45,15 @@
<!-- Top toolbar with mouse controls -->
<div id="header-ui">
+
+ <!-- checkbox option to show skeleton -->
+ <div id="skeleton-toggle" class="styled-checkbox icon-toggle" >
+ <input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">
+ <label for="show-skeleton-checkbox" data-tippy-content="Show skeleton" tabindex="0">
+ <img src="./images/icons/bone-display.svg" width="30" height="30" alt="Show skeleton" />
+ </label>
+ </div>
+
<div>
<img src="./images/mouse-left.svg" height="30" width="30" style="vertical-align: middle;"/> Rotate
</div>
@@ -135,15 +144,6 @@
<div style="display: flex; gap: 0.5rem;">
- <!-- checkbox option to show skeleton -->
- <div class="styled-checkbox icon-toggle">
- <input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">
- <label for="show-skeleton-checkbox" data-tippy-content="Show skeleton" tabindex="0">
- <img src="./images/icons/bone-display.svg" width="30" height="30" alt="Show skeleton" />
- </label>
- </div>
-
-
<!-- testing the mirroring options -->
<div class="styled-checkbox icon-toggle">
@@ -197,6 +197,7 @@
</div>
+
<!-- 3d view control hit box. It is just a container to help with 3d view controls. -->
<div id="view-control-hitbox"></div>
diff --git a/src/marketing/marketing.css b/src/marketing/marketing.css
index 30161d2..c1912fd 100644
--- a/src/marketing/marketing.css
+++ b/src/marketing/marketing.css
@@ -2,7 +2,7 @@
display: inline-flex;
flex-direction: column;
left: 0;
- top: 70px;
+ top: 3rem;
gap: 0;
margin: 1rem;
position: fixed;
diff --git a/src/retarget/index.html b/src/retarget/index.html
index 728fe42..4aeb6ae 100644
--- a/src/retarget/index.html
+++ b/src/retarget/index.html
@@ -168,17 +168,7 @@
<div style="display: flex; gap: 0.5rem;">
<button class="secondary-button" id="back_to_bone_map_button" >&#x2039; Back</button>
-
- <!-- checkbox option to show skeleton -->
- <div class="styled-checkbox icon-toggle">
- <input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">
- <label for="show-skeleton-checkbox" data-tippy-content="Show skeleton" tabindex="0">
- <img src="../images/icons/bone-display.svg" width="30" height="30" alt="Show skeleton" />
- </label>
- </div>
-
- <!-- I renamed the button ID since we need to process the aniamtions different
- -->
+ <!-- I renamed the button ID since we need to process the animations differently -->
<button id="export-retargeting-button" title="Export animations. Make sure to select the animations you want to export first.">
<span class="button-icon-group">
<span class="material-symbols-outlined">save_alt</span>
@@ -219,6 +209,14 @@
<!-- Top toolbar with mouse controls -->
<div id="header-ui">
+
+ <div id="skeleton-toggle" class="styled-checkbox icon-toggle" >
+ <input type="checkbox" id="show-skeleton-checkbox" name="show-skeleton" value="show" style="display:none;">
+ <label for="show-skeleton-checkbox" data-tippy-content="Show skeleton" tabindex="0">
+ <img src="../images/icons/bone-display.svg" width="30" height="30" alt="Show skeleton" />
+ </label>
+ </div>
+
<div>
<img src="/images/mouse-left.svg" height="30" width="30" style="vertical-align: middle;"/> Rotate
</div>
diff --git a/src/styles.css b/src/styles.css
index a36fcb8..639fe5b 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -128,6 +128,10 @@ div, p {
background: var(--button-alternate-bg);
}
+#skeleton-toggle {
+
+}
+
#skinned-step-tools