Import a 3D Model and automatically assign and export animations
TypeScript
import { type SkeletonType } from '../enums/SkeletonType'
import { type PreviewCamera } from './PreviewCamera'
import { type VariationSettings } from './VariationSettings'
/**
* App-specific settings for a rig. Everything about which files exist (model, skeleton,
* variations, animations) comes from the asset manifest, looked up with manifest_key.
*/
export interface RigSettings {
skeleton_type: SkeletonType // The SkeletonType enum member for this rig
manifest_key: string // key of this rig in the asset manifest, e.g. 'human'
rig_display_name: string // Display name shown in both the model and skeleton dropdowns
animation_preview_folder: string // Sub-folder name used when referencing animation preview thumbnails
skeleton_template_image_url: string // URL for the skeleton template image shown in the edit skeleton step
// The bone used for position tracking (e.g., 'hips' or 'head').
// we only have one bone per rig that we allow position keyframes (besides root)
position_tracking_bone_name: string
// Camera used by the preview generator for this rig's animation preview videos. Set by hand from the
// camera position readout on the preview generator page. Without it, the camera is fit to the animations
preview_camera?: PreviewCamera
// keyed by the variation name in the asset manifest. Variations listed here are shown first, in this order
variations?: Record<string, VariationSettings>
// manifest variations to leave out of the app. The manifest is generated by the external assets repo,
// so it can't be edited here
excluded_variations?: string[]
}