Set the Stage Up Axis

You can set the upAxis metadata on the stage using UsdGeom.SetStageUpAxis to define which world axis points up. The tokens for the different axes are scoped in UsdGeom.Tokens.

Note

Fallback stage upAxis is Y.

Warning

Existing objects will not be automatically rotated to adapt to the stage upAxis. Learn more about stage up axis.

USD API

from pxr import UsdGeom

# Set stage upAxis to Z.
UsdGeom.UsdGeomSetStageUpAxis(stage, UsdGeom.Tokens.z)