Skip to content

Missing Default Prim

Severity: ⚠️ Warning
Fixable: 🔧 Manual
Prevalence: 🔶 Medium

The USD file has no defaultPrim set. This can cause QuickLook failures and some RealityKit loading methods to fail or behave unexpectedly.


TODO: Add specific forum/Stack Overflow links


  • Files exported from some DCC tools without proper USD configuration
  • Hand-authored USD files that omit the metadata
  • Files that have multiple root prims without a designated default

USD allows files to have multiple root-level prims. The defaultPrim metadata tells consumers which prim to use as the entry point. Without it:

  • QuickLook may fail to display anything
  • Some loaders pick the first prim arbitrarily
  • Composition (referencing) becomes ambiguous

File: PreflightCore/USDClient.swift
Function: performValidation()

let defaultPrim = stage.GetDefaultPrim()
if !defaultPrim.IsValid() {
results.append(.warning("No Default Prim set..."))
}

Set the default prim before export:

  • Blender: Set in USD export options
  • Maya: Configure in USD export dialog

Add to the stage metadata:

#usda 1.0
(
defaultPrim = "MyRootPrim"
upAxis = "Y"
)



DateChange
2024-12-18Stub created