Set the Stage Linear Units

You can set the metersPerUnit metadata on the stage using UsdGeom.SetStageMetersPerUnit to define the linear units of the stage. Convenience shortcuts for units are scoped in UsdGeom.LinearUnits (e.g. UsdGeom.LinearUnits.meters is 1.0 metersPerUnit)


Fallback stage linear units are centimeters (0.01).


Existing objects will not be automatically scaled to adapt to the stage linear units. Learn more about stage linear units.


from pxr import UsdGeom

# Set stage linear units to meters.
# Any double-precision float can be used for metersPerUnit.
UsdGeom.SetStageMetersPerUnit(stage, UsdGeom.LinearUnits.meters)