Load USD stage
# The following is a scripting example of how to load a USD stage.
import ufe
import maya.mel as mel
# Use the following mel command to load a USD stage from disk.
filepath = 'C:/dev/temp/some/path/to/usdFile.usda'
stagePathString = mel.eval(f'mayaUsd_createStageFromFilePath("{filepath}")')
stageItem = ufe.Hierarchy.createItem(ufe.PathString.path(stageShapePathString))
print(f'Loaded "{ufe.PathString.string(stageItem.path())}" from file "{filepath}"')
# Refer to the other examples to learn how to navigate the scene hierarchy using UFE.