openusd 0.5.0

Rust native USD library
Documentation
//! Token constants for the [UsdMedia](super) schema family.
//!
//! Mirrors the grouping in Pixar's `pxr/usd/usdMedia/tokens.h`.

// ── Concrete prim type names ────────────────────────────────────────
pub const T_SPATIAL_AUDIO: &str = "SpatialAudio";

// ── Applied API schema names ────────────────────────────────────────
pub const API_ASSET_PREVIEWS: &str = "AssetPreviewsAPI";

// ── `assetInfo` thumbnail-preview dictionary keys (AssetPreviewsAPI) ─
// `assetInfo = { previews = { thumbnails = { default = { asset defaultImage = @…@ } } } }`
pub const PREVIEWS: &str = "previews";
pub const THUMBNAILS: &str = "thumbnails";
pub const PREVIEW_DEFAULT: &str = "default";
pub const DEFAULT_IMAGE: &str = "defaultImage";

// ── SpatialAudio attribute names ────────────────────────────────────
pub const A_FILE_PATH: &str = "filePath";
pub const A_AURAL_MODE: &str = "auralMode";
pub const A_PLAYBACK_MODE: &str = "playbackMode";
pub const A_START_TIME: &str = "startTime";
pub const A_END_TIME: &str = "endTime";
pub const A_MEDIA_OFFSET: &str = "mediaOffset";
pub const A_GAIN: &str = "gain";

// ── `auralMode` token values ────────────────────────────────────────
pub const AURAL_SPATIAL: &str = "spatial";
pub const AURAL_NON_SPATIAL: &str = "nonSpatial";

// ── `playbackMode` token values ─────────────────────────────────────
pub const PLAYBACK_ONCE_FROM_START: &str = "onceFromStart";
pub const PLAYBACK_ONCE_FROM_START_TO_END: &str = "onceFromStartToEnd";
pub const PLAYBACK_LOOP_FROM_START: &str = "loopFromStart";
pub const PLAYBACK_LOOP_FROM_START_TO_END: &str = "loopFromStartToEnd";
pub const PLAYBACK_LOOP_FROM_STAGE: &str = "loopFromStage";