Import a 3D Model and automatically assign and export animations
TypeScript
h1 {
font-size: 1.7rem;
}
.bone-map-section {
display: inline-flex;
flex-direction: column;
border: 1px solid var(--bg-tertiary);
padding: 0;
}
.bone-map-heading {
display: inline-block;
color: var(--text-primary);
margin: 0;
padding: 1rem;
background: var(--bg-alternate);
margin-bottom: 1rem;
}
.bone-map-content {
padding: 1rem;
padding-top: 0;
}
#source-bones-list, #target-bones-list {
height: calc(100vh - 490px); /* Hard-code the height to keep the UI consistent when filtering the lists */
height: calc(100dvh - 490px); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
overflow-y: auto;
background-color: var(--bg-alternate);
border-radius: 0.25rem;
}
/* Custom scrollbar styling */
#source-bones-list::-webkit-scrollbar,
#target-bones-list::-webkit-scrollbar {
width: 8px;
}
#source-bones-list::-webkit-scrollbar-track,
#target-bones-list::-webkit-scrollbar-track {
background: var(--bg-alternate);
border-radius: 0.25rem;
}
#source-bones-list::-webkit-scrollbar-thumb,
#target-bones-list::-webkit-scrollbar-thumb {
background: var(--text-secondary);
border-radius: 0.25rem;
opacity: 0.5;
}
#source-bones-list::-webkit-scrollbar-thumb:hover,
#target-bones-list::-webkit-scrollbar-thumb:hover {
background: var(--primary-color);
}
/* Firefox scrollbar styling */
#source-bones-list,
#target-bones-list {
scrollbar-width: thin;
scrollbar-color: var(--text-secondary) var(--bg-alternate);
}
/* Bone mapping list item styles with drag and drop styles */
.bone-item {
padding: 0.5rem;
border-bottom: 1px solid var(--bg-tertiary)
}
.bone-item-source {
cursor: grab;
user-select: none;
display: flex;
align-items: center;
}
.bone-item-source::before {
content: '⋮⋮';
margin-right: 0.5rem;
color: var(--text-secondary);
font-weight: bold;
opacity: 0.6;
line-height: 1;
}
.bone-item-source:hover::before {
opacity: 1;
color: var(--primary-color);
}
.bone-item-source.dragging {
opacity: 0.5;
cursor: grabbing;
}
.bone-item-target {
min-height: 2rem;
display: flex;
align-items: center;
gap: 0.5rem;
justify-content: space-between;
}
.bone-item-target.drag-over {
background-color: var(--bg-tertiary);
border: 1px dashed var(--primary-color);
}
.mapping-source-name {
color: var(--bg-primary);
background: var(--text-alternate);
padding: 0.25rem 0.5rem;
border-radius: 5px;
}
#animations-items {
max-height: calc(100vh - 17rem);
max-height: calc(100dvh - 17rem); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
}
#animations-listing.has-arm-extension #animations-items {
/* reserve room for the arm extension controls so the download row stays on screen */
max-height: calc(100vh - 25rem);
max-height: calc(100dvh - 25rem); /* dvh accounts for iPad/iOS browser toolbars; 100vh line above is the fallback */
}
#auto-bone-map-match {
font-size: 0.9rem;
border: 3px solid var(--bg-tertiary);
padding: 0.2rem 0.4rem;
border-radius: 0.25rem;
display: none;
}
#no-bone-mapping-needed-message {
max-width: 13rem;
margin-top: 2rem;
font-style: italic;
}
/* Bone tree view */
.bone-tree-dialog-summary {
display: flex;
gap: 1rem;
border-bottom: 1px solid var(--bg-tertiary);
}
.bone-tree-dialog-warning {
margin: 0.6rem 0;
padding: 0.5rem 0.75rem;
border-left: 3px solid #f0a500;
background: rgba(240, 165, 0, 0.1);
color: #f0a500;
font-size: 0.875rem;
line-height: 1.4;
border-radius: 0 4px 4px 0;
}
.bone-tree-dialog-list,
.bone-tree-dialog-list ul {
list-style: none;
margin: 0;
padding-left: 0.8rem;
}
.bone-tree-dialog-list {
padding-left: 0;
}
.bone-tree-dialog-list ul {
margin-left: 0.7rem;
border-left: 2px solid var(--bg-tertiary);
}
.bone-tree-dialog-list li {
margin: 0.2rem 0;
}
.bone-tree-node-name {
padding: 0.2rem 0.4rem;
}
#view-bone-tree-button {
cursor: pointer;
opacity: 0.7;
text-decoration: underline;
}
#view-bone-tree-button:hover {
opacity: 1;
}
/* Root bone selection dialog (multi-skeleton FBX imports) */
.root-bone-selection-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 1rem;
}
.root-bone-selection-option {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.15rem;
width: 100%;
text-align: left;
padding: 0.6rem 0.8rem;
border: 2px solid var(--bg-tertiary);
border-radius: 0.25rem;
background: var(--bg-primary);
cursor: pointer;
}
.root-bone-selection-option:hover {
border-color: var(--primary-color);
transform: scale(1.02);
}
.root-bone-option-name {
font-weight: bold;
}
.root-bone-option-details {
opacity: 0.7;
font-size: 0.875rem;
}
.root-bone-selection-actions {
margin-top: 1rem;
text-align: center;
}